CVE-2021-4034: Polkit Project Polkit Buffer Overflow

CVE-2021-4034

NVDCVSS scored by NVD (NIST)

Vulnerability Summary

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.
Severity Level
HIGH(7.8)
Published Date
Jan 28, 2022
Last Modified
Aug 15, 2026
PoC
Available(Metasploit)
Exploitation Status
ACTIVE
EPSS Score (30-Day)
94.92%Probability
Root Weakness (CWE)
The product writes data past the end, or before the beginning, of the intended buffer.
The software reads data past the end, or before the beginning, of the intended buffer.
CVSS v3.1 Base Metrics — Score 7.8 (HIGH)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

Affected & Patched Versions

Affected Versions
  • Polkit Project Polkit < 121
  • Redhat Enterprise Linux Server Update Services For Sap Solutions
  • Redhat Enterprise Linux
  • Redhat Enterprise Linux Desktop
  • Redhat Enterprise Linux Eus
  • Redhat Enterprise Linux For Ibm Z Systems
  • Redhat Enterprise Linux For Ibm Z Systems Eus
  • Redhat Enterprise Linux For Power Big Endian
  • Redhat Enterprise Linux For Power Little Endian
  • Redhat Enterprise Linux For Power Little Endian Eus
  • Redhat Enterprise Linux For Scientific Computing
  • Redhat Enterprise Linux Server
  • Redhat Enterprise Linux Server Aus
  • Redhat Enterprise Linux Server Eus
  • Redhat Enterprise Linux Server Tus
  • Redhat Enterprise Linux Workstation
  • Canonical Ubuntu Linux
  • Suse Enterprise Storage
  • Suse Linux Enterprise High Performance Computing
  • Suse Manager Proxy
  • Suse Manager Server
  • Suse Linux Enterprise Desktop
  • Suse Linux Enterprise Server
  • Suse Linux Enterprise Workstation Extension
  • Oracle Http Server
  • Oracle Zfs Storage Appliance Kit
  • Siemens Sinumerik Edge < 3.3.0
  • Siemens Scalance Lpe9403 Firmware < 2.0
  • Starwindsoftware Command Center
  • Starwindsoftware Starwind Virtual San
  • polkit all
Patched Versions
  • Polkit Project Polkit 121
  • Siemens Sinumerik Edge 3.3.0
  • Siemens Scalance Lpe9403 Firmware 2.0

What to do

Patch now. CISA lists this flaw as exploited in the wild and set a federal remediation deadline of Jul 18, 2022.

  1. Check whether you run Polkit Project Polkit and which version.
  2. Update to a patched version listed above, then confirm the new version.
  3. Review logs and exposed services for signs of earlier compromise.

CISA required action: Apply updates per vendor instructions.

CISA KEV Status

Listed in Known Exploited Vulnerabilities
Added: Jun 27, 2022
Remediation due: Jul 18, 2022 (deadline passed)
Known use in ransomware campaigns: Yes

Timeline

  • Jan 28, 2022Published
  • Jun 27, 2022Added to CISA KEV catalog
  • Jul 18, 2022KEV remediation due date
  • Aug 15, 2026Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Polkit Project Polkit CVEsYou are reading CVE-2021-4034. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

External References

Data last checked: Dec 6, 2026 10:06 UTC