CVE-2021-4034: Red Hat Polkit Out-of-Bounds Read and Write Vulnerability
Vulnerability summary
CVE-2021-4034 is a high (CVSS 7.8) Out-of-bounds Write vulnerability in Red Hat Polkit. It is known to be exploited: CISA lists it, first on 27-06-2022. It has been used in ransomware campaigns. EPSS estimates a 94.92% chance of exploitation in the next 30 days, higher than 99.8% of scored vulnerabilities. 6 public exploits are recorded.
Advisory lineage
Upstream 0 · Downstream 2Timeline
- 28-01-2022PublishedVulnerability first disclosed.
- 27-06-2022Added to CISA KEVRed Hat Polkit Out-of-Bounds Read and Write Vulnerability
- 18-07-2022CISA remediation dueApply updates per vendor instructions.
- 15-08-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · Red hatEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
94.92%
Chance of exploitation in the next 30 days
Percentile
100%
Versus all other CVEs
30-day change
0.00 pp
From 94.92% on 18-09-2026
Known exploited
Compare KEV catalogs- Added
- 27-06-2022
- Federal due date
- 18-07-2022
CISA required action
Apply updates per vendor instructions. nvd.nist.gov/vuln/detail/CVE-2021-4034
Public exploits
6 foundExploit Reference (qualys.com)
Maturity: unknown
Exploit Reference (packetstormsecurity.com)
Maturity: unknown
Exploit Reference (secpod.com)
Maturity: unknown
Show all 6 exploits
Exploit Reference (vicarius.io)
Maturity: unknown
PolicyKit-1 0.105-31 - Privilege Escalation
Maturity: poc
Local Privilege Escalation in polkits pkexec
exploit/linux/local/cve_2021_4034_pwnkit_lpe_pkexec
Maturity: weaponized
Weaknesses
CWE · root causeAffected systems
Suse44 products
- polkit&distro=HPE Helion OpenStack 8< 0.113-5.24.1
- polkit&distro=SUSE Enterprise Storage 6< 0.114-3.15.1
- polkit&distro=SUSE Enterprise Storage 7< 0.116-3.6.1
- polkit&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS< 0.114-3.15.1
- polkit&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS< 0.114-3.15.1
Redhat23 products
- enterprise_linux8.0
- enterprise_linux_desktop7.0
- enterprise_linux_eus8.2
- enterprise_linux_for_ibm_z_systems7.0 | 8.0
- enterprise_linux_for_ibm_z_systems_eus8.2 | 8.4
Opensuse2 products
- polkit&distro=openSUSE Leap 15.3< 0.116-3.6.1
- polkit&distro=openSUSE Tumbleweed< 0.120-2.1
Oracle2 products
- http_server12.2.1.3.0 | 12.2.1.4.0
- zfs_storage_appliance_kit8.8
Siemens2 products
- scalance_lpe9403_firmware< 2.0
- sinumerik_edge< 3.3.0
Starwindsoftware2 products
- command_center1.0:update3_build5871
- starwind_virtual_sanv8:build14338
Canonical1 product
- ubuntu_linuxEOL14.04 | 16.04 | 18.04 | 20.04 | 21.10
Debian1 product
- policykit-1< 0.105-31.1 | < 0.105-25+deb10u1 | < 0.105-31+deb11u1 | < 0.105-18+deb9u2
Mageia1 product
- polkit< 0.118-1.2.mga8
Polkit_project1 product
- polkit< 121
Ubuntu1 product
- policykit-1< 0.105-20ubuntu0.18.04.6 | < 0.105-26ubuntu1.2 | < 0.105-4ubuntu3.14.04.6+esm1 | < 0.105-14.1ubuntu0.5+esm1 | < 0.105-31ubuntu1
11 vendors · 80 products
References
50 links- www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txtWEBARTICLEREPORTExploitMitigationThird Party Advisory
- packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.htmlExploitThird Party AdvisoryVDB Entry
- packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.htmlThird Party AdvisoryVDB Entry
- www.suse.com/support/kb/doc/?id=000020564Third Party Advisory
- cert-portal.siemens.com/productcert/pdf/ssa-330556.pdfThird Party Advisory
- www.starwindsoftware.com/security/sw-20220818-0001/Third Party Advisory
Show all 50 references
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-4034Government ResourceUS Government Resource
- lists.opensuse.org/archives/…Advisory