Email me

Rust advisories / zbus_polkit

VulnerabilityRUSTSEC-2026-0278 · zbus_polkit

RUSTSEC-2026-0278: `zbus_polkit`: authorization bypass via PID reuse

Short answerA security vulnerability in the zbus_polkit crate: `zbus_polkit`: authorization bypass via PID reuse. No severity score was published. Fixed in 5.1.0: update to a fixed version.

Cratezbus_polkit
TypeVulnerability (privilege-escalation)
Affected versionsBefore 5.1.0.
Fixed in5.1.0
Severitynot scored
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Published2026-08-31
Last changed2026-09-02
Also known asCVE-2026-78422
Affected functionszbus_polkit::Subject::new_for_owner

What to do

  1. See which version you have: cargo tree -i zbus_polkit (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p zbus_polkit. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example zbus_polkit = "5.1.0") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

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.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Up next

Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ