CVE-2021-4034
HIGH 7.8CVSS 3.1known exploitedransomwareRed Hat Polkit Out-of-Bounds Read and Write Vulnerability
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.
- Published
- 28 Jan 2022
- Last modified
- 15 Aug 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Analyzed
- Weakness
- CWE-125CWE-787
- Sources
- NVDJSONCISA KEVJSON
In CISA's Known Exploited Vulnerabilities catalog since 27 Jun 2022; US federal agencies must fix it by 18 Jul 2022.
Apply updates per vendor instructions.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.2 | AV:L/AC:L/Au:N/C:C/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | polkit_project | polkitcpe:2.3:a:polkit_project:polkit:*:*:*:*:*:*:*:* |
< 121 | 121 |
| NVD | redhat | enterprise_linux_server_update_services_for_sap_solutionscpe:2.3:a:redhat:enterprise_linux_server_update_services_for_sap_solutions:7.6:*:*:*:*:*:*:* |
= 7.6 | |
| NVD | redhat | enterprise_linux_server_update_services_for_sap_solutionscpe:2.3:a:redhat:enterprise_linux_server_update_services_for_sap_solutions:7.7:*:*:*:*:*:*:* |
= 7.7 | |
| NVD | redhat | enterprise_linuxcpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | redhat | enterprise_linux_desktopcpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linux_euscpe:2.3:o:redhat:enterprise_linux_eus:8.2:*:*:*:*:*:*:* |
= 8.2 | |
| NVD | redhat | enterprise_linux_for_ibm_z_systemscpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linux_for_ibm_z_systemscpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | redhat | enterprise_linux_for_ibm_z_systems_euscpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems_eus:8.2:*:*:*:*:*:*:* |
= 8.2 | |
| NVD | redhat | enterprise_linux_for_ibm_z_systems_euscpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems_eus:8.4:*:*:*:*:*:*:* |
= 8.4 | |
| NVD | redhat | enterprise_linux_for_power_big_endiancpe:2.3:o:redhat:enterprise_linux_for_power_big_endian:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linux_for_power_little_endiancpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linux_for_power_little_endiancpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | redhat | enterprise_linux_for_power_little_endian_euscpe:2.3:o:redhat:enterprise_linux_for_power_little_endian_eus:8.1:*:*:*:*:*:*:* |
= 8.1 | |
| NVD | redhat | enterprise_linux_for_power_little_endian_euscpe:2.3:o:redhat:enterprise_linux_for_power_little_endian_eus:8.2:*:*:*:*:*:*:* |
= 8.2 | |
| NVD | redhat | enterprise_linux_for_power_little_endian_euscpe:2.3:o:redhat:enterprise_linux_for_power_little_endian_eus:8.4:*:*:*:*:*:*:* |
= 8.4 | |
| NVD | redhat | enterprise_linux_for_scientific_computingcpe:2.3:o:redhat:enterprise_linux_for_scientific_computing:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linux_servercpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:* |
= 6.0 | |
| NVD | redhat | enterprise_linux_servercpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | redhat | enterprise_linux_server_auscpe:2.3:o:redhat:enterprise_linux_server_aus:7.3:*:*:*:*:*:*:* |
= 7.3 | |
| NVD | redhat | enterprise_linux_server_auscpe:2.3:o:redhat:enterprise_linux_server_aus:7.4:*:*:*:*:*:*:* |
= 7.4 | |
| NVD | redhat | enterprise_linux_server_auscpe:2.3:o:redhat:enterprise_linux_server_aus:7.6:*:*:*:*:*:*:* |
= 7.6 | |
| NVD | redhat | enterprise_linux_server_auscpe:2.3:o:redhat:enterprise_linux_server_aus:7.7:*:*:*:*:*:*:* |
= 7.7 | |
| NVD | redhat | enterprise_linux_server_auscpe:2.3:o:redhat:enterprise_linux_server_aus:8.2:*:*:*:*:*:*:* |
= 8.2 | |
| NVD | redhat | enterprise_linux_server_auscpe:2.3:o:redhat:enterprise_linux_server_aus:8.4:*:*:*:*:*:*:* |
= 8.4 | |
| NVD | redhat | enterprise_linux_server_euscpe:2.3:o:redhat:enterprise_linux_server_eus:8.4:*:*:*:*:*:*:* |
= 8.4 | |
| NVD | redhat | enterprise_linux_server_tuscpe:2.3:o:redhat:enterprise_linux_server_tus:7.6:*:*:*:*:*:*:* |
= 7.6 | |
| NVD | redhat | enterprise_linux_server_tuscpe:2.3:o:redhat:enterprise_linux_server_tus:7.7:*:*:*:*:*:*:* |
= 7.7 | |
| NVD | redhat | enterprise_linux_server_tuscpe:2.3:o:redhat:enterprise_linux_server_tus:8.2:*:*:*:*:*:*:* |
= 8.2 | |
| NVD | redhat | enterprise_linux_server_tuscpe:2.3:o:redhat:enterprise_linux_server_tus:8.4:*:*:*:*:*:*:* |
= 8.4 | |
| NVD | redhat | enterprise_linux_server_update_services_for_sap_solutionscpe:2.3:o:redhat:enterprise_linux_server_update_services_for_sap_solutions:8.1:*:*:*:*:*:*:* |
= 8.1 | |
| NVD | redhat | enterprise_linux_server_update_services_for_sap_solutionscpe:2.3:o:redhat:enterprise_linux_server_update_services_for_sap_solutions:8.2:*:*:*:*:*:*:* |
= 8.2 | |
| NVD | redhat | enterprise_linux_server_update_services_for_sap_solutionscpe:2.3:o:redhat:enterprise_linux_server_update_services_for_sap_solutions:8.4:*:*:*:*:*:*:* |
= 8.4 | |
| NVD | redhat | enterprise_linux_workstationcpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:esm:*:*:* |
= 14.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:* |
= 16.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* |
= 18.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:* |
= 20.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:21.10:*:*:*:*:*:*:* |
= 21.10 | |
| NVD | suse | enterprise_storagecpe:2.3:a:suse:enterprise_storage:7.0:*:*:*:*:*:*:* |
= 7.0 | |
| NVD | suse | linux_enterprise_high_performance_computingcpe:2.3:a:suse:linux_enterprise_high_performance_computing:15.0:sp2:*:*:-:*:*:* |
= 15.0 | |
| NVD | suse | manager_proxycpe:2.3:a:suse:manager_proxy:4.1:*:*:*:*:*:*:* |
= 4.1 | |
| NVD | suse | manager_servercpe:2.3:a:suse:manager_server:4.1:*:*:*:*:*:*:* |
= 4.1 | |
| NVD | suse | linux_enterprise_desktopcpe:2.3:o:suse:linux_enterprise_desktop:15:sp2:*:*:*:*:*:* |
= 15 | |
| NVD | suse | linux_enterprise_servercpe:2.3:o:suse:linux_enterprise_server:15:sp2:*:*:*:-:*:* |
= 15 | |
| NVD | suse | linux_enterprise_servercpe:2.3:o:suse:linux_enterprise_server:15:sp2:*:*:*:sap:*:* |
= 15 | |
| NVD | suse | linux_enterprise_workstation_extensioncpe:2.3:o:suse:linux_enterprise_workstation_extension:12:sp5:*:*:*:*:*:* |
= 12 | |
| NVD | oracle | http_servercpe:2.3:a:oracle:http_server:12.2.1.3.0:*:*:*:*:*:*:* |
= 12.2.1.3.0 | |
| NVD | oracle | http_servercpe:2.3:a:oracle:http_server:12.2.1.4.0:*:*:*:*:*:*:* |
= 12.2.1.4.0 | |
| NVD | oracle | zfs_storage_appliance_kitcpe:2.3:a:oracle:zfs_storage_appliance_kit:8.8:*:*:*:*:*:*:* |
= 8.8 | |
| NVD | siemens | sinumerik_edgecpe:2.3:a:siemens:sinumerik_edge:*:*:*:*:*:*:*:* |
< 3.3.0 | 3.3.0 |
| NVD | siemens | scalance_lpe9403_firmwarecpe:2.3:o:siemens:scalance_lpe9403_firmware:*:*:*:*:*:*:*:* |
< 2.0 | 2.0 |
| NVD | starwindsoftware | command_centercpe:2.3:a:starwindsoftware:command_center:1.0:update3_build5871:*:*:*:*:*:* |
= 1.0 | |
| NVD | starwindsoftware | starwind_virtual_sancpe:2.3:a:starwindsoftware:starwind_virtual_san:v8:build14338:*:*:*:*:*:* |
= v8 |
References
- http://packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.html · Exploit, Third Party Advisory, VDB Entry
- http://packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html · Third Party Advisory, VDB Entry
- https://access.redhat.com/security/vulnerabilities/RHSB-2022-001 · Mitigation, Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2025869 · Issue Tracking, Patch
- https://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf · Third Party Advisory
- https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683 · Patch
- https://www.oracle.com/security-alerts/cpuapr2022.html · Patch, Third Party Advisory
- https://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt · Exploit, Mitigation, Third Party Advisory
- https://www.secpod.com/blog/local-privilege-escalation-vulnerability-in-major-linux-distributions-cve-2021-4034/ · Exploit, Third Party Advisory
- https://www.starwindsoftware.com/security/sw-20220818-0001/ · Third Party Advisory
- https://www.suse.com/support/kb/doc/?id=000020564 · Third Party Advisory
- https://www.vicarius.io/vsociety/posts/pwnkit-pkexec-lpe-cve-2021-4034 · Exploit, Third Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-4034 · US Government Resource
- https://nvd.nist.gov/vuln/detail/CVE-2021-4034
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 28 Jan 2022)
- 25 Nov 2026 20:10 UTC · CISA KEV: first stored (published 27 Jun 2022)
- 27 Jun 2022 00:00 UTC · Listed as known exploited