CVE-2021-4034
Red Hat Polkit Out-of-Bounds Read and Write Vulnerability
- Actively exploited
- Used by ransomware
- High · 7.8 of 10
- Exploited since
- 27 Jun 2022 added to the CISA list
- Chance of attacks
- 95% in the next 30 days (FIRST EPSS)
- Fix deadline
- 18 Jul 2022 for US federal agencies
- Published
- 28 Jan 2022 in the NVD
What this means
The Red Hat polkit pkexec utility contains an out-of-bounds read and write vulnerability that allows for privilege escalation with administrative rights.
CISA
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.
NIST National Vulnerability Database
What to do
Apply updates per vendor instructions.
CISA's required action. If you use the product, install the vendor's update as soon as possible.
Affected
- n/a polkit
Official sources
- nvd.nist.gov/vuln/detail/CVE-2021-4034
- access.redhat.com/security/vulnerabilities/RHSB-2022-001 vendor advisory
- access.redhat.com/security/vulnerabilities/RHSB-2022-001 vendor advisory
- packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.html
- packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html
- bugzilla.redhat.com/show_bug.cgi?id=2025869
- cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf
- gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683
- oracle.com/security-alerts/cpuapr2022.html
Data from the NIST National Vulnerability Database, the CISA Known Exploited Vulnerabilities list, FIRST EPSS and ENISA, checked 18 Nov 2026. CVSS vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.