# CVE-2026-41651: PackageKit vulnerable to TOCTOU Race on Transaction Flags leads to arbitrary package installation as root

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-28)
- **CWE:** CWE-367
- **Published:** 2026-04-22T13:11:40.174Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running PackageKit \>= 1.0.2, \<= 1.3.4

## Description

PackageKit is a a D-Bus abstraction layer that allows the user to manage packages in a secure way using a cross-distro, cross-architecture API. PackageKit between and including versions 1.0.2 and 1.3.4 is vulnerable to a time-of-check time-of-use (TOCTOU) race condition on transaction flags that allows unprivileged users to install packages as root and thus leads to a local privilege escalation. This is patched in version 1.3.5.

A local unprivileged user can install arbitrary RPM packages as root, including executing RPM scriptlets, without authentication. The vulnerability is a TOCTOU race condition on \`transaction-\>cached\_transaction\_flags\`  combined with a silent state-machine guard that discards illegal backward transitions while leaving corrupted flags in place. Three bugs exist in \`src/pk-transaction.c\`:
1. Unconditional flag overwrite (line 4036): \`InstallFiles()\` writes caller-supplied flags to \`transaction-\>cached\_transaction\_flags\` without checking whether the transaction has already been  authorized/started. A second call blindly overwrites the flags even while the transaction is RUNNING.
2. Silent state-transition rejection (lines 873–882): \`pk\_transaction\_set\_state()\` silently discards backward state transitions (e.g. \`RUNNING\` → \`WAITING\_FOR\_AUTH\`) but the flag overwrite at step 1 already happened. The transaction continues running with corrupted flags.
3. Late flag read at execution time (lines 2273–2277): The scheduler's idle callback reads cached\_transaction\_flags at dispatch time, not at authorization time. If flags were overwritten between authorization and execution, the backend sees the attacker's flags.

## Affected and fixed versions

- PackageKit: \>= 1.0.2, \<= 1.3.4 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-41651. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-41651.md
Affected: PackageKit >= 1.0.2, <= 1.3.4
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for PackageKit: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-41651 being exploited?

There is no confirmed exploitation: CVE-2026-41651 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-41651?

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-41651?

PackageKit \>= 1.0.2, \<= 1.3.4.

### Is there a fix for CVE-2026-41651?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-41651?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/PackageKit/PackageKit/security/advisories/GHSA-f55j-vvr9-69xv>
- vendor: <https://access.redhat.com/errata/RHSA-2026:22146>
- vendor: <https://access.redhat.com/errata/RHSA-2026:19601>
- vendor: <https://access.redhat.com/errata/RHSA-2026:19141>
- vendor: <https://access.redhat.com/errata/RHSA-2026:11635>
- vendor: <https://access.redhat.com/errata/RHSA-2026:17558>
- vendor: <https://access.redhat.com/errata/RHSA-2026:17561>
- vendor: <https://access.redhat.com/errata/RHSA-2026:17560>
- vendor: <https://access.redhat.com/errata/RHSA-2026:18024>
- vendor: <https://access.redhat.com/errata/RHSA-2026:18036>
- vendor: <https://access.redhat.com/errata/RHSA-2026:19454>
- vendor: <https://access.redhat.com/errata/RHSA-2026:18031>
- vendor: <https://access.redhat.com/errata/RHSA-2026:11504>
- vendor: <https://access.redhat.com/errata/RHSA-2026:19354>
- patch: <http://www.openwall.com/lists/oss-security/2026/04/22/6>
- exploit: <https://github.security.telekom.com/2026/04/pack2theroot-linux-local-privilege-escalation.html>
- other: <https://github.com/PackageKit/PackageKit/blob/04057883189efa225a7c785591aa87cb299782f8/src/pk-transaction.c#L2273-L2277>
- other: <https://github.com/PackageKit/PackageKit/blob/04057883189efa225a7c785591aa87cb299782f8/src/pk-transaction.c#L4036>
- other: <https://github.com/PackageKit/PackageKit/blob/04057883189efa225a7c785591aa87cb299782f8/src/pk-transaction.c#L873-L882>
- other: <https://access.redhat.com/security/cve/CVE-2026-41651>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2460604>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41651.json>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-41651>

HTML: <https://flawdb.com/CVE-2026-41651> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-41651>
