CVE-2021-4034
High 7.8KEV · exploitedPublic exploitFix status unknownRed Hat Polkit Out-of-Bounds Read and Write Vulnerability
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Among the highest-scored CVEs. A prediction, not evidence.
CISA remediation deadline
Passed 1587 days ago for U.S. federal agencies
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
Patching and mitigation
- Patch status
- Unknown: no source documents a fix
- Mitigation
- None documented
- Vendor guidance
- No vendor link on record
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Red Hat | Polkit | Not documented | Not documented | CISA KEV |
Timeline
Disclosure
CVE record published by redhat
Source: CVE Program (opens in a new tab)
27 Jun 2022KEV
Added to the CISA Known Exploited Vulnerabilities catalog
Source: CISA KEV (opens in a new tab)
27 Jun 2022Exploitation
Exploitation confirmed by CISA KEV
Source: CISA KEV (opens in a new tab)
Vendor guidance and references
- https://access.redhat.com/security/vulnerabilities/RHSB-2022-001 (opens in a new tab)x_transferred
- https://bugzilla.redhat.com/show_bug.cgi?id=2025869 (opens in a new tab)x_transferred
- https://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf (opens in a new tab)x_transferred
- https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683 (opens in a new tab)x_transferred
- https://nvd.nist.gov/vuln/detail/CVE-2021-4034 (opens in a new tab)government
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-4034 (opens in a new tab)government-resource
- https://www.oracle.com/security-alerts/cpuapr2022.html (opens in a new tab)x_transferred
- https://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt (opens in a new tab)x_transferred
- https://www.secpod.com/blog/local-privilege-escalation-vulnerability-in-major-linux-distributions-cve-2021-4034/ (opens in a new tab)x_transferred
- https://www.starwindsoftware.com/security/sw-20220818-0001/ (opens in a new tab)x_transferred
- https://www.suse.com/support/kb/doc/?id=000020564 (opens in a new tab)x_transferred
- https://www.vicarius.io/vsociety/posts/pwnkit-pkexec-lpe-cve-2021-4034 (opens in a new tab)
Public exploit code
Exploit or proof-of-concept code is publicly available on Exploit-DB. Shown as a prioritization and defensive-testing signal — treat exploit code as hostile and run it only against systems you are authorized to test.