CVE-2021-4034

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.

Severity
HIGH
CVSS v3
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
94.921%
chance of exploitation in the next 30 days
higher than 99.9% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2022-06-27 · known ransomware use
Public exploit code
Yes
Exploit references (NVD and CNA): 4
Metasploit modules: 1
Nuclei templates: 0
Exploit-DB: 1

Weakness

CISA Known Exploited Vulnerabilities entry

Vulnerability nameRed Hat Polkit Out-of-Bounds Read and Write Vulnerability
Vendor / productRed Hat / Polkit
Date added2022-06-27
Federal remediation due date2022-07-18
Required actionApply updates per vendor instructions.
Known ransomware campaign useKnown

CISA SSVC decision points

Exploitationactive
Automatableno
Technical impacttotal
Scored2022-06-27

Timeline

  1. 2022-01-27First Exploit-DB entry (EDB-ID 50689)1 day before publication
  2. 2022-01-28Published by the CNA00:00 UTC
  3. 2022-06-27Added to the CISA KEV catalog150 days after publication
  4. 2022-06-27CISA SSVC decision recorded150 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

Exploit-DBTypePlatformPublishedEDB-verified
EDB-ID 50689locallinux2022-01-27no

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
polkit_project polkitbefore 121fixed in 121121
canonical ubuntu_linux14.04no fix listed16.04no fix listed18.04no fix listed20.04no fix listed21.10no fix listednot listednot listednot listednot listednot listed
oracle http_server12.2.1.3.0no fix listed12.2.1.4.0no fix listednot listednot listed
oracle zfs_storage_appliance_kit8.8no fix listednot listed
redhat enterprise_linux8.0no fix listednot listed
redhat enterprise_linux_desktop7.0no fix listednot listed
redhat enterprise_linux_eus8.2no fix listednot listed
redhat enterprise_linux_for_ibm_z_systems7.0no fix listed8.0no fix listednot listednot listed
redhat enterprise_linux_for_ibm_z_systems_eus8.2no fix listed8.4no fix listednot listednot listed
redhat enterprise_linux_for_power_big_endian7.0no fix listednot listed
redhat enterprise_linux_for_power_little_endian7.0no fix listed8.0no fix listednot listednot listed
redhat enterprise_linux_for_power_little_endian_eus8.1no fix listed8.2no fix listed8.4no fix listednot listednot listednot listed
redhat enterprise_linux_for_scientific_computing7.0no fix listednot listed
redhat enterprise_linux_server6.0no fix listed7.0no fix listednot listednot listed
redhat enterprise_linux_server_aus7.3no fix listed7.4no fix listed7.6no fix listed7.7no fix listed8.2no fix listed(+1 more)not listednot listednot listednot listednot listed
redhat enterprise_linux_server_eus8.4no fix listednot listed
redhat enterprise_linux_server_tus7.6no fix listed7.7no fix listed8.2no fix listed8.4no fix listednot listednot listednot listednot listed
redhat enterprise_linux_server_update_services_for_sap_solutions7.6no fix listed7.7no fix listed8.1no fix listed8.2no fix listed8.4no fix listednot listednot listednot listednot listednot listed
redhat enterprise_linux_workstation7.0no fix listednot listed
siemens scalance_lpe9403_firmwarebefore 2.0fixed in 2.02.0

30 vulnerable vendor/product pairs in total; the first 20 are shown. The cve_products API lists them page by page, with versions.

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources