CVEBrief

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.

Exploited in the wild
Yes, CISA KEV
added June 27, 2022, due July 18, 2022, used in ransomware
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
Exploit odds (EPSS)
94.9% in 30 days
higher than 100% of CVEs; FIRST, December 2, 2026

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?

VendorProductAffectedFixed or not affected from
polkitall

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?

VendorProductVersionsType
polkit projectpolkitbefore 121application
redhatenterprise linux server update services for sap solutions7.6application
redhatenterprise linux server update services for sap solutions7.7application
redhatenterprise linux8.0operating system
redhatenterprise linux desktop7.0operating system
redhatenterprise linux eus8.2operating system
redhatenterprise linux for ibm z systems7.0operating system
redhatenterprise linux for ibm z systems8.0operating system
redhatenterprise linux for ibm z systems eus8.2operating system
redhatenterprise linux for ibm z systems eus8.4operating system
redhatenterprise linux for power big endian7.0operating system
redhatenterprise linux for power little endian7.0operating system
redhatenterprise linux for power little endian8.0operating system
redhatenterprise linux for power little endian eus8.1operating system
redhatenterprise linux for power little endian eus8.2operating system
redhatenterprise linux for power little endian eus8.4operating system
redhatenterprise linux for scientific computing7.0operating system
redhatenterprise linux server6.0operating system
redhatenterprise linux server7.0operating system
redhatenterprise linux server aus7.3operating system
redhatenterprise linux server aus7.4operating system
redhatenterprise linux server aus7.6operating system
redhatenterprise linux server aus7.7operating system
redhatenterprise linux server aus8.2operating system
redhatenterprise linux server aus8.4operating system

NVD analysis (status Analyzed), last modified August 15, 2026, 04:17 UTC.

How severe is CVE-2021-4034?

ScoreVersionVectorSource
High 7.8CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCISA-ADP
High 7.8CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD
High 7.2CVSS 2.0AV:L/AC:L/Au:N/C:C/I:C/A:CNVD

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?

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?

Every CVE in polkit

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.