CVE-2021-4034 Red Hat Polkit Out-of-Bounds Read and Write Vulnerability
The Red Hat polkit pkexec utility contains an out-of-bounds read and write vulnerability that allows for privilege escalation with administrative rights.
From the CISA KEV catalogue version 2026.11.06, with Cybergen analysis. Updated 6 Nov 2026.
Should You Worry?
- CISA confirmed exploitation in the wild and added it to the Known Exploited Vulnerabilities catalogue on 27 Jun 2022.
- CISA lists it as known to be used in ransomware campaigns.
- Rated High severity (CVSS 7.8, scored by CISA).
- It has been in the catalogue for 1,593 days. Systems still unpatched now have almost certainly been scanned for it.
What It Is
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 Versions
| Product | Versions |
|---|---|
| polkit | all |
From the public CVE record, as supplied by the vendor. Always confirm against the vendor advisory.
What To Do Now
- 1
Find it
Search your asset inventory and external attack surface for Red Hat Polkit. Include cloud images, appliances and anything a supplier runs for you.
Attack Surface Management - 2
- 3
Hunt for compromise
If an affected system was reachable before you patched, assume it may have been hit. Check logs, new accounts, web shells and outbound connections from the date of exposure.
Incident Response - 4
Prove it is fixed
Rescan or test the system after patching. Upgrades that fail silently and forgotten secondary instances are common.
Penetration Testing
Vendor Advisories
The Compliance Clock
General guidance, not legal advice. Your obligations depend on your sector, scope and jurisdiction.
Not Sure If You Are Exposed?
Our attack surface and vulnerability teams can check your internet-facing estate for CVE-2021-4034 and every other exploited flaw on the list.
Sources
- CISA Known Exploited Vulnerabilities catalogue
- NVD: CVE-2021-4034
- CVE record: CVE-2021-4034
- FIRST EPSS
- access.redhat.com/security/vulnerabilities/RHSB-2022-001
- qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt
- bugzilla.redhat.com/show_bug.cgi?id=2025869
- gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683
- oracle.com/security-alerts/cpuapr2022.html
- packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.html
- packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html
- suse.com/support/kb/doc/?id=000020564
