Red Hat Polkit Out-of-Bounds Read and Write Vulnerability
- CVSS
- 7.8High
- Chance of exploitation (EPSS)
- 95%
- Published
- Jan 28, 2022
- In the news
- Not yet
What to do
A serious memory corruption flaw in Canonical Ubuntu Linux, Oracle HTTP Server, Oracle Zfs Storage Appliance Kit and 28 more that needs access to the machine itself. Attackers are already using it, so treat it as urgent.
Action: Apply updates per vendor instructions.
US federal agencies must fix this by Jul 18, 2022 (past due).
Description
A local privilege escalation vulnerability was found on polkit's pkexec utility. The pkexec application is a setuid tool designed to allow unprivileged users to run commands as privileged users according predefined policies. The current version of pkexec doesn't handle the calling parameters count correctly and ends trying to execute environment variables as commands. An attacker can leverage this by crafting environment variables in such a way it'll induce pkexec to execute arbitrary code. When successfully executed the attack can cause a local privilege escalation given unprivileged users administrative rights on the target machine.
Affected products
Get alerts for these →Timeline 7
Latest change: Nessus plugin 388338: CentOS Linux 8.5 [TuxCare] Security Update: polkit / polkit-devel / polkit-docs / polkit-libs (CENTOS8.5:CLSA-2022:1643291562) (Nov 29, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Mon, Nov 30, 2026
- DetectionNessus plugin 388338: CentOS Linux 8.5 [TuxCare] Security Update: polkit / polkit-devel / polkit-docs / polkit-libs (CENTOS8.5:CLSA-2022:1643291562)Tenable
- DetectionNessus plugin 388516: CentOS Linux 8.4 [TuxCare] Security Update: polkit / polkit-devel / polkit-docs / polkit-libs (CENTOS8.4:CLSA-2022:1643212149)Tenable
- DetectionNessus plugin 388581: CentOS Linux 6 [TuxCare] Security Update: polkit / polkit-desktop-policy / polkit-devel / polkit-docs (CENTOS6:CLSA-2022:1643211942)Tenable
Fri, Nov 20, 2026
- Exploit codevukma25/CVE-2021-4034: Điều chỉnh, kết hợp mã nguồn khai thác của Ayrx và BerdavGitHub (unverified) · 08:15 UTC
Tue, Nov 3, 2026
- Exploit codeeshkoreee/CVE-2021-4034: я разобрал уязвимость называемую в простонародии Pwnkit в учебных целях и написал к нему PoC. использовать строго в учебных целяхGitHub (unverified) · 21:30 UTC
Mon, Jun 27, 2022
Fri, Jan 28, 2022
- CVECVE-2021-4034 published (CVSS 7.8)CVE Program · 20:15 UTC
Exploit code
Visit at your own risk. These are third-party sites we find automatically. We do not test, review or vouch for them, and fake proof-of-concept repositories sometimes contain malware.
- eshkoreee/CVE-2021-4034: я разобрал уязвимость называемую в простонародии Pwnkit в учебных целях и написал к нему PoC. использовать строго в учебных целях
GitHub, unverified · found Nov 3, 2026
- vukma25/CVE-2021-4034: Điều chỉnh, kết hợp mã nguồn khai thác của Ayrx và Berdav
GitHub, unverified · found Nov 20, 2026
References 24
- bugzilla.redhat.com Patch /show_bug.cgi?id=2025869
- gitlab.freedesktop.org Patch /polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683
- www.oracle.com Patch /security-alerts/cpuapr2022.html
- bugzilla.redhat.com Patch /show_bug.cgi?id=2025869
- gitlab.freedesktop.org Patch /polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683
- www.oracle.com Patch /security-alerts/cpuapr2022.html
- access.redhat.com MitigationVendor Advisory /security/vulnerabilities/RHSB-2022-001
- access.redhat.com MitigationVendor Advisory /security/vulnerabilities/RHSB-2022-001
- packetstormsecurity.com Exploit /files/166196/Polkit-pkexec-Local-Privilege-Escalation.html
- www.qualys.com ExploitMitigation /2022/01/25/cve-2021-4034/pwnkit.txt
- www.secpod.com Exploit /blog/local-privilege-escalation-vulnerability-in-major-linux-distributions-cve-2021-4034/
- packetstormsecurity.com Exploit /files/166196/Polkit-pkexec-Local-Privilege-Escalation.html
- www.qualys.com ExploitMitigation /2022/01/25/cve-2021-4034/pwnkit.txt
- www.secpod.com Exploit /blog/local-privilege-escalation-vulnerability-in-major-linux-distributions-cve-2021-4034/
- www.vicarius.io Exploit /vsociety/posts/pwnkit-pkexec-lpe-cve-2021-4034
- packetstormsecurity.com /files/166200/Polkit-pkexec-Privilege-Escalation.html
- cert-portal.siemens.com /productcert/pdf/ssa-330556.pdf
- www.starwindsoftware.com /security/sw-20220818-0001/
- www.suse.com /support/kb/doc/?id=000020564
- packetstormsecurity.com /files/166200/Polkit-pkexec-Privilege-Escalation.html
- cert-portal.siemens.com /productcert/pdf/ssa-330556.pdf
- www.starwindsoftware.com /security/sw-20220818-0001/
- www.suse.com /support/kb/doc/?id=000020564
- www.cisa.gov /known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-4034