CVE-2021-4034
CONFIRMED EXPLOITEDKNOWN RANSOMWARE CAMPAIGN USERed Hat Polkit Out-of-Bounds Read and Write Vulnerability
Is Red Hat Polkit affected by CVE-2021-4034?
Red Hat Polkit is listed in the CISA Known Exploited Vulnerabilities catalog for CVE-2021-4034, added on 2022-06-27. CISA only adds a CVE once it has evidence of exploitation in the wild, so the patching question is not whether it can be attacked but how soon your instances must be updated.
Affected products published by NIST NVD (40 vulnerable CPE entries): canonical ubuntu_linux, polkit_project polkit, redhat enterprise_linux, redhat enterprise_linux_desktop, redhat enterprise_linux_eus and redhat enterprise_linux_for_ibm_z_systems and 12 further CPE product entries.
Published CPE version bounds mark releases below 121 as vulnerable. Those bounds describe what is affected, not what patches it: upgrade to the fixed release named in the vendor advisory below, then confirm the installed version with your package manager or scanner.
The CISA remediation deadline for this entry is 2022-07-18, and CISA records known ransomware campaign use against it.
RELATED VULNERABILITY DOSSIERS
Other catalog entries that share this product, vendor, or weakness, or that sit next to this advisory in the CISA KEV timeline.
- CVE-2021-3560Same productRed Hat Polkit
Red Hat Polkit Incorrect Authorization Vulnerability
- CVE-2015-5287Same vendorRed Hat Automatic Bug Reporting Tool
Red Hat Automatic Bug Reporting Tool Privilege Escalation Vulnerability
- CVE-2015-3246Same vendorRed Hat Libuser
Red Hat Libuser Race Condition Vulnerability
- CVE-2018-14667Same vendorRed Hat JBoss RichFaces Framework
Red Hat JBoss RichFaces Framework Expression Language Injection Vulnerability
- CVE-2021-30983Neighboring entryApple iOS and iPadOS
Apple iOS and iPadOS Buffer Overflow Vulnerability
- CVE-2022-29499Neighboring entryMitel MiVoice Connect
Mitel MiVoice Connect Data Validation Vulnerability
1. VULNERABILITY OVERVIEW & TECHNICAL MECHANISM
The Red Hat polkit pkexec utility contains an out-of-bounds read and write vulnerability that allows for privilege escalation with administrative rights.
Get Stack Watch email when a KEV hits your stack ($99/year or $12/month)
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.
2. AFFECTED VERSIONS, PRODUCTS & VERIFIED CPE CONFIGURATIONS
3. EXPLOITATION EVIDENCE, IMPACT & HOW TO DETECT IT
This vulnerability was added to the CISA Known Exploited Vulnerabilities (KEV) catalog on 2022-06-27. Inclusion in KEV requires verified evidence of active exploitation in the wild. Known ransomware campaign use is recorded by CISA as: "Known".
Note: KEV inclusion confirms that threat actors have exploited this flaw in real-world incidents; it does not imply every deployment of Polkit has been compromised.
- CVSS vector indicates high impact to Confidentiality (C:H), Integrity (I:H), and Availability (A:H) of the affected component.
- Kernel / local privilege surface (Red Hat Polkit): monitor endpoint syscall and process telemetry (`Linux auditd`, `Tetragon` eBPF LSM/kprobe policies, Windows Security Event IDs 4672/4688 & Sysmon, `Velociraptor` VQL) for unexpected UID/token elevation, namespace escapes, or unauthorized child processes.
- Command/Argument Injection class (CWE-77/78/88): monitor process trees for `/bin/sh`, `bash`, `cmd.exe`, `powershell`, `curl`, or `wget` spawned as child processes of the service daemon.
- Memory corruption class (CWE-119/416/787): monitor system logs (`dmesg`, `journalctl`, Windows Event ID 1000, crash dumps) for segmentation faults (`SIGSEGV`/`SIGABRT`) or worker process restarts.
- Inventory all hosts running Red Hat Polkit and compare installed package/build versions against the NVD CPE configurations and vendor advisory below.
4. FIXED VERSION, MITIGATIONS & OFFICIAL ADVISORY CITATIONS
Apply updates per vendor instructions.
- http://packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.htmlExploitThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.htmlThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/vulnerabilities/RHSB-2022-001MitigationVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2025869Issue TrackingPatch
- https://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdfThird Party Advisory
- https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683Patch
- https://www.oracle.com/security-alerts/cpuapr2022.htmlPatchThird Party Advisory
- https://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txtExploitMitigationThird Party Advisory
- https://www.secpod.com/blog/local-privilege-escalation-vulnerability-in-major-linux-distributions-cve-2021-4034/ExploitThird Party Advisory
- https://www.starwindsoftware.com/security/sw-20220818-0001/Third Party Advisory
- https://www.suse.com/support/kb/doc/?id=000020564Third Party Advisory
- http://packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.htmlExploitThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.htmlThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/vulnerabilities/RHSB-2022-001MitigationVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2025869Issue TrackingPatch
- https://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdfThird Party Advisory
- https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683Patch
- https://www.oracle.com/security-alerts/cpuapr2022.htmlPatchThird Party Advisory
- https://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txtExploitMitigationThird Party Advisory
- https://www.secpod.com/blog/local-privilege-escalation-vulnerability-in-major-linux-distributions-cve-2021-4034/ExploitThird Party Advisory
- https://www.starwindsoftware.com/security/sw-20220818-0001/Third Party Advisory
- https://www.suse.com/support/kb/doc/?id=000020564Third Party Advisory
- https://www.vicarius.io/vsociety/posts/pwnkit-pkexec-lpe-cve-2021-4034ExploitThird Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-4034US Government Resource
SCORING & VECTOR TELEMETRY
Primary assessment authored by NIST NVD (nvd@nist.gov).
EPSS estimates the statistical probability of exploitation activity in the next 30 days—it is not proof of confirmed exploitation.
RELEVANT DEFENSIVE TOOLS
Curated open-source defensive and verification utilities from The Loot applicable to this asset class:
Endpoint visibility, digital forensics, and incident response (DFIR) platform
Network security monitoring (NSM) and protocol metadata extraction framework
Multi-threaded IDS, IPS, and network security monitoring engine
VirusTotal's memory-safe Rust rewrite of YARA for binary & implant hunting