Home / polkit / polkit / CVE-2021-4034
CVE-2021-4034: is it exploited, and which versions of polkit are affected and fixed?
CVE-2021-4034 is an out-of-bounds write (memory corruption) vulnerability in polkit, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on June 27, 2022, with a federal due date of July 18, 2022. Affected: polkit all (CVE record by redhat). Fixed in 121, 3.3.0 and 2.0 (NVD). Severity: High (7.8, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:08 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:51 UTC.
What is CVE-2021-4034?
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.
From the CVE record by redhat, last updated August 15, 2026, 03:55 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| polkit | all |
As the CVE record by redhat states it, last updated August 15, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| polkit project | polkit | before 121 | application |
| redhat | enterprise linux server update services for sap solutions | 7.6 | application |
| redhat | enterprise linux server update services for sap solutions | 7.7 | application |
| redhat | enterprise linux | 8.0 | operating system |
| redhat | enterprise linux desktop | 7.0 | operating system |
| redhat | enterprise linux eus | 8.2 | operating system |
| redhat | enterprise linux for ibm z systems | 7.0 | operating system |
| redhat | enterprise linux for ibm z systems | 8.0 | operating system |
| redhat | enterprise linux for ibm z systems eus | 8.2 | operating system |
| redhat | enterprise linux for ibm z systems eus | 8.4 | operating system |
| redhat | enterprise linux for power big endian | 7.0 | operating system |
| redhat | enterprise linux for power little endian | 7.0 | operating system |
| redhat | enterprise linux for power little endian | 8.0 | operating system |
| redhat | enterprise linux for power little endian eus | 8.1 | operating system |
| redhat | enterprise linux for power little endian eus | 8.2 | operating system |
| redhat | enterprise linux for power little endian eus | 8.4 | operating system |
| redhat | enterprise linux for scientific computing | 7.0 | operating system |
| redhat | enterprise linux server | 6.0 | operating system |
| redhat | enterprise linux server | 7.0 | operating system |
| redhat | enterprise linux server aus | 7.3 | operating system |
| redhat | enterprise linux server aus | 7.4 | operating system |
| redhat | enterprise linux server aus | 7.6 | operating system |
| redhat | enterprise linux server aus | 7.7 | operating system |
| redhat | enterprise linux server aus | 8.2 | operating system |
| redhat | enterprise linux server aus | 8.4 | operating system |
NVD analysis (status Analyzed), last modified August 15, 2026, 04:17 UTC.
How severe is CVE-2021-4034?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | NVD |
| High 7.2 | CVSS 2.0 | AV:L/AC:L/Au:N/C:C/I:C/A:C | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-4034 exploited in the wild?
- CISA KEV
- Listed as Red Hat Polkit Out-of-Bounds Read and Write Vulnerability, added June 27, 2022; federal agencies must act by July 18, 2022
- Required action
- Apply updates per vendor instructions.
- Ransomware use
- Known
- CISA's summary
- The Red Hat polkit pkexec utility contains an out-of-bounds read and write vulnerability that allows for privilege escalation with administrative rights.
- CISA SSVC
- Exploitation: active; automatable: no; technical impact: total (CISA ADP, June 27, 2022)
- EPSS
- 94.9% probability of exploitation activity in the next 30 days, percentile 99.9 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://access.redhat.com/security/vulnerabilities/RHSB-2022-001
- https://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt
- https://bugzilla.redhat.com/show_bug.cgi?id=2025869
- https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683
- https://www.oracle.com/security-alerts/cpuapr2022.html
- http://packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.html
- http://packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html
- https://www.suse.com/support/kb/doc/?id=000020564
- https://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf
- https://www.starwindsoftware.com/security/sw-20220818-0001/
- https://www.secpod.com/blog/local-privilege-escalation-vulnerability-in-major-linux-distributions-cve-2021-4034/
- https://www.vicarius.io/vsociety/posts/pwnkit-pkexec-lpe-cve-2021-4034
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-4034 government-resource
When was it published, and where is the official record?
- Reserved
- November 29, 2021
- Published
- January 28, 2022, 00:00 UTC
- CVE record updated
- August 15, 2026, 03:55 UTC by redhat
- NVD
- Analyzed, last modified August 15, 2026, 04:17 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:51 UTC; KEV December 3, 2026, 12:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD · CISA KEV
What other CVEs affect polkit?
- Feb 16, 2022CVE-2021-3560 polkit: incorrect authorization exploited
Questions about CVE-2021-4034
Is CVE-2021-4034 exploited in the wild?
Yes. CISA added CVE-2021-4034 to its Known Exploited Vulnerabilities catalog on June 27, 2022 and set federal agencies a due date of July 18, 2022. CISA lists it as used in ransomware campaigns. FIRST's EPSS gives it a 94.9% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of polkit are affected by CVE-2021-4034?
polkit all, per the CVE record by redhat. The tables above give every range the sources list.
Which version fixes CVE-2021-4034?
121, 3.3.0 and 2.0, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-4034?
High (7.8, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2021-4034?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.