CVE-2021-4034Red Hat Polkit
Local privilege escalation in Polkit pkexec
High 7.8 KEVRansomware High EPSS
Follow: this CVE · Red Hat · Red Hat Polkit We alert you by email or Slack (account required).
- Priority
- 71
- CVSS 3.1
- 7.8
- EPSS
- 94.9% probability of exploitation in 30 days · percentile 100
- Auth required
- Yes
- In KEV since
- Jun 27, 2022
- CISA deadline
- Jul 18, 2022
- Ransomware use
- Confirmed
- Published
- Jan 28, 2022
- Updated
- Aug 15, 2026
- Category
- Operating system · Linux
- SSVC (CISA)
- Exploitation: active · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
A local privilege escalation vulnerability affects Polkit's pkexec utility in versions before 121. A local attacker can manipulate environment variables to execute arbitrary code with administrative privileges. CISA confirmed active exploitation in production environments.
Show the original NVD text
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.
Exploitation confirmed by CISA
The Red Hat polkit pkexec utility contains an out-of-bounds read and write vulnerability that allows for privilege escalation with administrative rights.
Action required by CISA: Apply updates per vendor instructions.
What to do
Patch available · fixed versions: 121
Update Polkit to version 121 or later. Refer to Red Hat's advisory for distribution-specific instructions.
- Apply the vendor's security update for Polkit.
- CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was July 18, 2022.
- Check logs for signs of earlier exploitation.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| polkit_project | polkit | < 121 |
| redhat | enterprise_linux_server_update_services_for_sap_solutions | 7.6 |
| redhat | enterprise_linux_server_update_services_for_sap_solutions | 7.7 |
| redhat | enterprise_linux | 8.0 |
| redhat | enterprise_linux_desktop | 7.0 |
| redhat | enterprise_linux_eus | 8.2 |
| redhat | enterprise_linux_for_ibm_z_systems | 7.0 |
| redhat | enterprise_linux_for_ibm_z_systems | 8.0 |
| redhat | enterprise_linux_for_ibm_z_systems_eus | 8.2 |
| redhat | enterprise_linux_for_ibm_z_systems_eus | 8.4 |
| redhat | enterprise_linux_for_power_big_endian | 7.0 |
| redhat | enterprise_linux_for_power_little_endian | 7.0 |
| redhat | enterprise_linux_for_power_little_endian | 8.0 |
| redhat | enterprise_linux_for_power_little_endian_eus | 8.1 |
| redhat | enterprise_linux_for_power_little_endian_eus | 8.2 |
| redhat | enterprise_linux_for_power_little_endian_eus | 8.4 |
| redhat | enterprise_linux_for_scientific_computing | 7.0 |
| redhat | enterprise_linux_server | 6.0 |
| redhat | enterprise_linux_server | 7.0 |
| redhat | enterprise_linux_server_aus | 7.3 |
| redhat | enterprise_linux_server_aus | 7.4 |
| redhat | enterprise_linux_server_aus | 7.6 |
| redhat | enterprise_linux_server_aus | 7.7 |
| redhat | enterprise_linux_server_aus | 8.2 |
| redhat | enterprise_linux_server_aus | 8.4 |
| redhat | enterprise_linux_server_eus | 8.4 |
| redhat | enterprise_linux_server_tus | 7.6 |
| redhat | enterprise_linux_server_tus | 7.7 |
| redhat | enterprise_linux_server_tus | 8.2 |
| redhat | enterprise_linux_server_tus | 8.4 |
| redhat | enterprise_linux_server_update_services_for_sap_solutions | 8.1 |
| redhat | enterprise_linux_server_update_services_for_sap_solutions | 8.2 |
| redhat | enterprise_linux_server_update_services_for_sap_solutions | 8.4 |
| redhat | enterprise_linux_workstation | 7.0 |
| canonical | ubuntu_linux | 14.04 |
| canonical | ubuntu_linux | 16.04 |
| canonical | ubuntu_linux | 18.04 |
| canonical | ubuntu_linux | 20.04 |
| canonical | ubuntu_linux | 21.10 |
| suse | enterprise_storage | 7.0 |
| suse | linux_enterprise_high_performance_computing | 15.0 |
| suse | manager_proxy | 4.1 |
| suse | manager_server | 4.1 |
| suse | linux_enterprise_desktop | 15 |
| suse | linux_enterprise_server | 15 |
| suse | linux_enterprise_server | 15 |
| suse | linux_enterprise_workstation_extension | 12 |
| oracle | http_server | 12.2.1.3.0 |
| oracle | http_server | 12.2.1.4.0 |
| oracle | zfs_storage_appliance_kit | 8.8 |
| siemens | sinumerik_edge | < 3.3.0 |
| siemens | scalance_lpe9403_firmware | < 2.0 |
| starwindsoftware | command_center | 1.0 |
| starwindsoftware | starwind_virtual_san | v8 |
Official sources
References
Links published by the sources. Open them with care.
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- packetstormsecurity.com Third Party Advisory VDB Entry
- access.redhat.com Mitigation Vendor Advisory
- bugzilla.redhat.com Issue Tracking Patch
- cert-portal.siemens.com Third Party Advisory
- gitlab.freedesktop.org Patch
- www.oracle.com Patch Third Party Advisory
- www.qualys.com Exploit Mitigation Third Party Advisory
- www.secpod.com Exploit Third Party Advisory
- www.starwindsoftware.com Third Party Advisory
- www.suse.com Third Party Advisory
- www.vicarius.io Exploit Third Party Advisory
- www.cisa.gov US Government Resource