{
  "id": "CVE-2026-41651",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-41651",
  "published_at": "2026-04-22T13:11:40.174Z",
  "title": "PackageKit vulnerable to TOCTOU Race on Transaction Flags leads to arbitrary package installation as root",
  "vendor": "PackageKit",
  "product": "PackageKit",
  "cvss": {
    "score": 8.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-04-23T23:11:39Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 1.4,
    "repo": "CipherCloak/CVE-2026-41651",
    "source": "github"
  },
  "poc_repo_count": 12,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.\n\nA 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-\u003ecached_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`:\n1. Unconditional flag overwrite (line 4036): `InstallFiles()` writes caller-supplied flags to `transaction-\u003ecached_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.\n2. 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.\n3. 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.",
  "cwe": "CWE-367",
  "cpes": [
    "cpe:2.3:a:packagekit_project:packagekit:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.8
  },
  "repos": [
    {
      "repo": "Vozec/CVE-2026-41651",
      "url": "https://github.com/Vozec/CVE-2026-41651",
      "created_at": "2026-04-23T08:57:29Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 128,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-03-04T22:27:53Z"
    },
    {
      "repo": "CipherCloak/CVE-2026-41651",
      "url": "https://github.com/CipherCloak/CVE-2026-41651",
      "created_at": "2026-04-23T23:11:39Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 7,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2013-01-21T21:06:01Z"
    },
    {
      "repo": "0xBlackash/CVE-2026-41651",
      "url": "https://github.com/0xBlackash/CVE-2026-41651",
      "created_at": "2026-04-24T07:39:17Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 13,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-02-06T16:11:55Z"
    },
    {
      "repo": "0xredash/CVE-2026-41651",
      "url": "https://github.com/0xredash/CVE-2026-41651",
      "created_at": "2026-04-24T07:39:17Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 13,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-02-06T16:11:55Z"
    },
    {
      "repo": "ashrafzaryouh/CVE-2026-41651",
      "url": "https://github.com/ashrafzaryouh/CVE-2026-41651",
      "created_at": "2026-04-24T07:39:17Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 13,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-02-06T16:11:55Z"
    },
    {
      "repo": "baph00met/CVE-2026-41651",
      "url": "https://github.com/baph00met/CVE-2026-41651",
      "created_at": "2026-04-24T10:32:42Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 17,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-02-18T18:10:02Z"
    },
    {
      "repo": "dinosn/pack2theroot-lab",
      "url": "https://github.com/dinosn/pack2theroot-lab",
      "created_at": "2026-04-25T03:29:30Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 8,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 45,
      "suspicious": false,
      "suspicion_reasons": [
        "README gives an archive password",
        "code never talks to a target"
      ],
      "status": "analyzed",
      "owner_created_at": "2013-03-13T08:31:01Z"
    },
    {
      "repo": "shibaaa204/Pack2TheRoot",
      "url": "https://github.com/shibaaa204/Pack2TheRoot",
      "created_at": "2026-04-29T15:40:54Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 13,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-07-29T11:04:10Z"
    },
    {
      "repo": "mazofeifaalfaro/check_pack2theroot",
      "url": "https://github.com/mazofeifaalfaro/check_pack2theroot",
      "created_at": "2026-04-30T03:00:19Z",
      "first_seen_at": "2026-11-15T02:31:15.731Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped",
      "owner_created_at": "2020-11-11T06:49:42Z"
    },
    {
      "repo": "Kowntaewook/CVE-2026-41651-analysis",
      "url": "https://github.com/Kowntaewook/CVE-2026-41651-analysis",
      "created_at": "2026-05-06T06:12:09Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "no",
      "kind": "writeup",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-11-27T13:09:23Z"
    },
    {
      "repo": "mawussid/CVE-2026-41651-Python",
      "url": "https://github.com/mawussid/CVE-2026-41651-Python",
      "created_at": "2026-05-06T07:39:29Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-02-28T23:39:29Z"
    },
    {
      "repo": "0xDVRK/CVE-2026-41651",
      "url": "https://github.com/0xDVRK/CVE-2026-41651",
      "created_at": "2026-07-25T08:13:21Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-12-14T08:31:44Z"
    },
    {
      "repo": "gbuyssens/CVE-2026-41651",
      "url": "https://github.com/gbuyssens/CVE-2026-41651",
      "created_at": "2026-08-02T10:57:10Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 30 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2026-07-17T09:15:47Z"
    },
    {
      "repo": "iapetus12/cohort-htb",
      "url": "https://github.com/iapetus12/cohort-htb",
      "created_at": "2026-08-08T15:27:14Z",
      "first_seen_at": "2026-11-15T02:31:15.731Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-12-08T12:47:17Z"
    },
    {
      "repo": "Thhc10/CVE-2026-41651",
      "url": "https://github.com/Thhc10/CVE-2026-41651",
      "created_at": "2026-09-23T20:35:48Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-05-09T01:24:13Z"
    },
    {
      "repo": "1nt1m4cy/HTB-Cohort",
      "url": "https://github.com/1nt1m4cy/HTB-Cohort",
      "created_at": "2026-11-04T00:45:03Z",
      "first_seen_at": "2026-11-15T04:19:49.928Z",
      "stars": 2,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "discovered",
      "owner_created_at": "2025-05-08T02:26:05Z"
    },
    {
      "repo": "thiscitze/cve-2026-41651-poc",
      "url": "https://github.com/thiscitze/cve-2026-41651-poc",
      "created_at": "2026-11-06T00:06:51Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-04-19T13:03:28Z"
    },
    {
      "repo": "0xv01d/CVE-2026-41651",
      "url": "https://github.com/0xv01d/CVE-2026-41651",
      "created_at": "2026-11-13T07:45:17Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-10-20T06:39:05Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "PackageKit",
        "product": "PackageKit",
        "ranges": [
          "\u003e= 1.0.2, \u003c= 1.3.4"
        ],
        "fixed_in": null
      }
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/PackageKit/PackageKit/security/advisories/GHSA-f55j-vvr9-69xv"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/api/validate",
      "body_markers": [
        "\"url\":\"http://127.1:80/status\""
      ],
      "ports": [
        80
      ],
      "protocol": "http",
      "repos": [
        "iapetus12/cohort-htb"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "iapetus12/cohort-htb/README.md:28"
      ]
    }
  ],
  "rules": []
}
