zbus_polkit is vulnerable to Authorization Bypass
73
High Risk
Subject::new_for_owner() encodes the unix-process polkit subject's UID as an unsigned 32-bit integer, while PolicyKit expects a signed 32-bit integer. Polkit therefore discards the caller-supplied UID and resolves ownership from the PID via /proc, which is subject to a TOCTOU race. An application that passes a trusted UID (for example from SO_PEERCRED) to defend against PID reuse gets no protection, so a local attacker who reclaims an authorized process's PID can be authorized under that identity. The fix encodes the UID with the signed type PolicyKit expects so the supplied owner is honored.
You are affected if you are using a version that falls within the vulnerable range and your application builds polkit subjects with Subject::new_for_owner() using a caller-supplied UID to pin process identity.
zbus_polkit is vulnerable to Authorization Bypass in versions 1.0.0 - 5.0.0.
Upgrade the zbus_polkit library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.