cve.bz

CVE-2026-41651 (Pack2TheRoot) packagekit project packagekit

8.8 highExploit referenceEPSS 0.6%Fix available

Known as Pack2TheRoot

High (8.8) in packagekit project packagekit. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 47th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-05-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-41651 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-41651?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-41651?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-41651 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
packagekit_project:packagekitfrom 1.0.2 before 1.3.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11packagekit1.2.2-2+deb11u1DLA-4545-1
Debian12packagekit1.2.6-5+deb12u1DEBIAN-CVE-2026-41651 DSA-6226-1
Debian13packagekit1.3.1-1+deb13u1DEBIAN-CVE-2026-41651 DSA-6226-1
Debian14packagekit1.3.5-1DEBIAN-CVE-2026-41651
Ubuntu22.04:LTSpackagekit1.2.5-2ubuntu3.1UBUNTU-CVE-2026-41651
Ubuntu24.04:LTSpackagekit1.2.8-2ubuntu1.5UBUNTU-CVE-2026-41651
Ubuntu25.10packagekit1.3.1-1ubuntu1.1UBUNTU-CVE-2026-41651
Ubuntu26.04:LTSpackagekit1.3.4-3ubuntu1UBUNTU-CVE-2026-41651
UbuntuPro:16.04:LTSpackagekit0.8.17-4ubuntu6~gcc5.4ubuntu1.5+esm1UBUNTU-CVE-2026-41651
UbuntuPro:18.04:LTSpackagekit1.1.9-1ubuntu2.18.04.6+esm1UBUNTU-CVE-2026-41651
UbuntuPro:20.04:LTSpackagekit1.1.13-2ubuntu1.1+esm1UBUNTU-CVE-2026-41651
Red Hatenterprise_linux:8::appstreamPackageKit, PackageKit-cron, PackageKit-glib and 9 more0:1.1.12-8.el8_10RHSA-2026:11635
Red Hatenterprise_linux:8::crbPackageKit, PackageKit-debuginfo, PackageKit-glib-devel and 5 more0:1.1.12-8.el8_10RHSA-2026:11635
Red Hatenterprise_linux:9::appstreamPackageKit, PackageKit-glib, PackageKit-debuginfo and 8 more0:1.2.6-2.el9_7RHSA-2026:11504
Red Hatenterprise_linux:9::appstreamPackageKit, PackageKit-glib, PackageKit-debuginfo and 8 more0:1.2.6-2.el9_8RHSA-2026:19354
Red Hatenterprise_linux:9::crbPackageKit-debuginfo, PackageKit-glib-devel, PackageKit-debugsource and 4 more0:1.2.6-2.el9_7RHSA-2026:11504
Red Hatenterprise_linux:9::crbPackageKit-debuginfo, PackageKit-glib-devel, PackageKit-debugsource and 4 more0:1.2.6-2.el9_8RHSA-2026:19354
Red Hatenterprise_linux:10.2PackageKit, PackageKit-glib, PackageKit-debuginfo and 9 more0:1.2.8-8.el10_2RHSA-2026:19141
Red Hatenterprise_linux_eus:10.0PackageKit, PackageKit-glib, PackageKit-debuginfo and 9 more0:1.2.8-8.el10_0.1RHSA-2026:19601
Red Hatrhel_aus:8.4::appstream, rhel_eus_long_life:8.4::appstreamPackageKit, PackageKit-cron, PackageKit-glib and 9 more0:1.1.12-6.el8_4.1RHSA-2026:17558
Red Hatrhel_aus:8.6::appstream, rhel_e4s:8.6::appstream, rhel_tus:8.6::appstreamPackageKit, PackageKit-cron, PackageKit-glib and 9 more0:1.1.12-6.el8_6.1RHSA-2026:17561
Red Hatrhel_e4s:8.8::appstream, rhel_tus:8.8::appstreamPackageKit, PackageKit-cron, PackageKit-glib and 9 more0:1.1.12-6.el8_8.1RHSA-2026:17560
Red Hatrhel_e4s:9.0::appstreamPackageKit, PackageKit-glib, PackageKit-debuginfo and 8 more0:1.2.4-2.el9_0.1RHSA-2026:18024
6 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 morePackageKit1.2.4-150500.6.10.1SUSE-SU-2026:5144-1
openSUSETumbleweedPackageKit1.3.5-1.1openSUSE-SU-2026:10629-1
AlmaLinux8PackageKit, PackageKit-cron, PackageKit-glib and 4 more1.1.12-8.el8_10ALSA-2026:11635
AlmaLinux9PackageKit, PackageKit-glib, PackageKit-glib-devel and 3 more1.2.6-2.el9_7ALSA-2026:11504
AlmaLinux9PackageKit, PackageKit-glib, PackageKit-glib-devel and 3 more1.2.6-2.el9_8ALSA-2026:19354
AlmaLinux10PackageKit, PackageKit-glib, PackageKit-glib-devel and 3 more1.2.8-8.el10_2ALSA-2026:19141
Rocky Linux8PackageKit0:1.1.12-8.el8_10RLSA-2026:11635
Rocky Linux9PackageKit0:1.2.6-2.el9_7RLSA-2026:11504 RLSA-2026:19354
Rocky Linux10PackageKit0:1.2.8-8.el10RLSA-2026:19141

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

To exploit this issue, an attacker needs local access to the system and basic permissions to install packages via PackageKit, limiting its exposure to authenticated users. As this flaw allows a local user to escalate its privileges, specifically gaining administrative permissions, this vulnerability has been rated with an important severity.

Red Hat's mitigation

To mitigate this vulnerability, mask the PackageKit service. Note that graphical package managers, such as GNOME software, will not work as expected until the service is unmasked.

~~~

sudo systemctl stop packagekit.service

sudo systemctl mask packagekit.service

~~~

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10PackageKit-0:1.2.8-8.el10_2Fixed 2026-05-19RHSA-2026:19141
Red Hat Enterprise Linux 10.0 Extended Update SupportPackageKit-0:1.2.8-8.el10_0.1Fixed 2026-05-20RHSA-2026:19601
Red Hat Enterprise Linux 7 Extended Lifecycle SupportPackageKit-0:1.1.10-2.el7_9.1Fixed 2026-06-01RHSA-2026:22146
Red Hat Enterprise Linux 8PackageKit-0:1.1.12-8.el8_10Fixed 2026-04-29RHSA-2026:11635
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update SupportPackageKit-0:1.1.12-6.el8_4.1Fixed 2026-05-14RHSA-2026:17558
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-OnPackageKit-0:1.1.12-6.el8_4.1Fixed 2026-05-14RHSA-2026:17558
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportPackageKit-0:1.1.12-6.el8_6.1Fixed 2026-05-14RHSA-2026:17561
Red Hat Enterprise Linux 8.6 Telecommunications Update ServicePackageKit-0:1.1.12-6.el8_6.1Fixed 2026-05-14RHSA-2026:17561
Red Hat Enterprise Linux 8.6 Update Services for SAP SolutionsPackageKit-0:1.1.12-6.el8_6.1Fixed 2026-05-14RHSA-2026:17561
Red Hat Enterprise Linux 8.8 Telecommunications Update ServicePackageKit-0:1.1.12-6.el8_8.1Fixed 2026-05-14RHSA-2026:17560
Red Hat Enterprise Linux 8.8 Update Services for SAP SolutionsPackageKit-0:1.1.12-6.el8_8.1Fixed 2026-05-14RHSA-2026:17560
Red Hat Enterprise Linux 9PackageKit-0:1.2.6-2.el9_7Fixed 2026-04-29RHSA-2026:11504
Red Hat Enterprise Linux 9PackageKit-0:1.2.6-2.el9_8Fixed 2026-05-19RHSA-2026:19354
Red Hat Enterprise Linux 9.0 Update Services for SAP SolutionsPackageKit-0:1.2.4-2.el9_0.1Fixed 2026-05-18RHSA-2026:18024
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsPackageKit-0:1.2.4-2.el9_2.1Fixed 2026-05-18RHSA-2026:18036
Red Hat Enterprise Linux 9.4 Extended Update SupportPackageKit-0:1.2.6-1.el9_4.1Fixed 2026-05-20RHSA-2026:19454
Red Hat Enterprise Linux 9.6 Extended Update SupportPackageKit-0:1.2.6-1.el9_6.1Fixed 2026-05-18RHSA-2026:18031
Red Hat Enterprise Linux 6PackageKitNot affected
Red Hat Enterprise Linux 7compat-PackageKit08Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-41651.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • Vozec/CVE-2026-41651 Harbor Check: matches CVE 129 stars, C, created
  • baph00met/CVE-2026-41651 Harbor Check: matches CVE 18 stars, Python, created
    CVE-2026-41651 — PackageKit TOCTOU LPE
  • ashrafzaryouh/CVE-2026-41651 Harbor Check: matches CVE 15 stars, Python, created
    CVE-2026-41651
  • shibaaa204/Pack2TheRoot Harbor Check: matches CVE 14 stars, created
    Poc for Pack2TheRoot CVE-2026-41651
  • dinosn/pack2theroot-lab Harbor Check: matches CVE 8 stars, created
    CTF-style Docker lab for CVE-2026-41651 (Pack2TheRoot): PackageKit permissive-polkit local privilege escalation
8 more
  • CipherCloak/CVE-2026-41651 Harbor Check: matches CVE 6 stars, C, created
  • mawussid/CVE-2026-41651-Python Harbor Check: matches CVE 2 stars, Python, created
  • 0xv01d/CVE-2026-41651 Harbor Check: matches CVE 0 stars, Python, created
    CVE-2026-41651 (Pack2TheRoot) - PackageKit D-Bus TOCTOU local privilege escalation, affected versions 1.0.2-1.3.4
  • thiscitze/cve-2026-41651-poc Harbor Check: matches CVE 0 stars, C, created
    CVE-2026-41651 - PackageKit 1.0.2-1.3.4 TOCTOU local privilege escalation, independent C implementation (PoC + exploit by thiscitze)
  • Thhc10/CVE-2026-41651 Harbor Check: matches CVE 0 stars, created
    Exploit for CVE-2026-41651 - PackageKit TOCTOU Local Privilege Escalation (Pack2TheRoot)
  • gbuyssens/CVE-2026-41651 Harbor Check: matches CVE 0 stars, Python, created
    Local privilege escalation via TOCTOU race condition in PackageKit's.
  • 0xDVRK/CVE-2026-41651 Harbor Check: matches CVE 0 stars, Python, created
  • Kowntaewook/CVE-2026-41651-analysis 0 stars, created

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON