CVE-2026-78422
zbus_polkit: polkit authorization bypass via PID reuse due to incorrect D-Bus type for the subject UID
Also known as RUSTSEC-2026-0278
Mitigation
- Upgrade zbus_polkit to 5.1.0 or later.
Who should check
- Projects that depend on crates.io package zbus_polkit (>= 0.0.0-0, < 5.1.0)
- Anyone running z-galaxy zbus_polkit < 5.1.0
Vulnerability facts
- Affected
- zbus_polkit >= 0.0.0-0, < 5.1.0
- Fixed in
- 5.1.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.3 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: Low
- User interaction: None
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.13% chance of exploitation in 30 days (percentile 1, 2026-11-26)
- CWE
- CWE-686, CWE-367
- Modified
Description
Subject::new_for_owner() in the zbus_polkit crate encodes the uid entry of a unix-process polkit subject as an unsigned 32-bit integer (D-Bus type u), whereas the org.freedesktop.PolicyKit1.Authority interface specifies a signed 32-bit integer (D-Bus type i). Because of this type mismatch, polkit silently discards the caller-supplied UID and instead determines the subject's owner itself by looking up the PID in /proc, a lookup that is inherently subject to a time-of-check/time-of-use race. Consequently, an application that passes a UID obtained from a trustworthy source — for example SO_PEERCRED Unix socket peer credentials — in order to defend against PID reuse receives no protection, and the supplied UID has no effect on the authorization decision. A local unprivileged attacker who can cause an authorized process to terminate and then win the race to have their own process assigned the same PID can be authorized under the identity of the terminated process, bypassing the polkit authorization check and performing actions the attacker is not entitled to. This issue affects zbus_polkit before 5.1.0.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| crates.io zbus_polkit | >= 0.0.0-0, < 5.1.0 | 5.1.0 | osv |
| z-galaxy zbus_polkit | < 5.1.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-78422. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-78422.md Affected: zbus_polkit >= 0.0.0-0, < 5.1.0 Fixed in: 5.1.0 Steps: 1. Search this machine and project for zbus_polkit (crates.io), z-galaxy zbus_polkit: 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.
References
Vendor advisories
FAQ
Is CVE-2026-78422 being exploited?
There is no confirmed exploitation: CVE-2026-78422 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.13% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-78422?
High: CVSS 7.3 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-78422?
zbus_polkit >= 0.0.0-0, < 5.1.0.
Is there a fix for CVE-2026-78422?
Yes. Fixed in 5.1.0. Upgrade zbus_polkit to 5.1.0 or later.
How do I check if I'm affected by CVE-2026-78422?
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.