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.
Weakness
- CWE-787: Out-of-bounds Write
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Red Hat Polkit Out-of-Bounds Read and Write Vulnerability |
|---|---|
| Vendor / product | Red Hat / Polkit |
| Date added | 2022-06-27 |
| Federal remediation due date | 2022-07-18 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Known |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2022-06-27 |
Timeline
- 2022-01-27First Exploit-DB entry (EDB-ID 50689)1 day before publication
- 2022-01-28Published by the CNA00:00 UTC
- 2022-06-27Added to the CISA KEV catalog150 days after publication
- 2022-06-27CISA SSVC decision recorded150 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 50689 | local | linux | 2022-01-27 | no |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| polkit_project polkit | before 121fixed in 121 | 121 |
| canonical ubuntu_linux | 14.04no fix listed16.04no fix listed18.04no fix listed20.04no fix listed21.10no fix listed | not listednot listednot listednot listednot listed |
| oracle http_server | 12.2.1.3.0no fix listed12.2.1.4.0no fix listed | not listednot listed |
| oracle zfs_storage_appliance_kit | 8.8no fix listed | not listed |
| redhat enterprise_linux | 8.0no fix listed | not listed |
| redhat enterprise_linux_desktop | 7.0no fix listed | not listed |
| redhat enterprise_linux_eus | 8.2no fix listed | not listed |
| redhat enterprise_linux_for_ibm_z_systems | 7.0no fix listed8.0no fix listed | not listednot listed |
| redhat enterprise_linux_for_ibm_z_systems_eus | 8.2no fix listed8.4no fix listed | not listednot listed |
| redhat enterprise_linux_for_power_big_endian | 7.0no fix listed | not listed |
| redhat enterprise_linux_for_power_little_endian | 7.0no fix listed8.0no fix listed | not listednot listed |
| redhat enterprise_linux_for_power_little_endian_eus | 8.1no fix listed8.2no fix listed8.4no fix listed | not listednot listednot listed |
| redhat enterprise_linux_for_scientific_computing | 7.0no fix listed | not listed |
| redhat enterprise_linux_server | 6.0no fix listed7.0no fix listed | not listednot listed |
| redhat enterprise_linux_server_aus | 7.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_eus | 8.4no fix listed | not listed |
| redhat enterprise_linux_server_tus | 7.6no fix listed7.7no fix listed8.2no fix listed8.4no fix listed | not listednot listednot listednot listed |
| redhat enterprise_linux_server_update_services_for_sap_solutions | 7.6no fix listed7.7no fix listed8.1no fix listed8.2no fix listed8.4no fix listed | not listednot listednot listednot listednot listed |
| redhat enterprise_linux_workstation | 7.0no fix listed | not listed |
| siemens scalance_lpe9403_firmware | before 2.0fixed in 2.0 | 2.0 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2025869
- https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://access.redhat.com/security/vulnerabilities/RHSB-2022-001
- http://packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.html
- https://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt
- https://www.secpod.com/blog/local-privilege-escalation-vulnerability-in-major-linux-distributions-cve-2021-4034/
- https://www.vicarius.io/vsociety/posts/pwnkit-pkexec-lpe-cve-2021-4034
- http://packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html
- https://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-4034
- https://www.starwindsoftware.com/security/sw-20220818-0001/
- https://www.suse.com/support/kb/doc/?id=000020564
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-4034'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-4034'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-4034'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-4034'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2021-4034'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).