CVE-2021-4034
⚡ CISA KEV🔐 RansomwarePublished: 2022-01-28Modified: 2026-08-15Vendor: Red HatProduct: Polkit
7.8
CVSS v3
94.9%
EPSS
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
⚡ Added to KEV on 2022-06-27 · Federal agencies must remediate by 2022-07-18
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.
💣 Public Exploits1
From Exploit-DB
| PolicyKit-1 0.105-31 - Privilege Escalation | linux | local | 2022-01-27 |
🔍 Sigma Detection Rules1
Rules tagged with this CVE
| high | PwnKit Local Privilege Escalation | linux | 2024-09-11 |
🛠️ Patch Details1
Affected/fixed versions from threat intel reports
| PolKit pkexec | less than 0.105-26ubuntu1.2 on Ubuntu 20.04, less than 0.105-31ubuntu0.1 on Ubuntu 21.10, less than 0.105-31+deb11u1 on Debian bullseye, less than polkit-0.115-11.el8_4.2 on RHEL 8.4 EUS | patches from major Linux vendors | source ↗ |
📰 Threat Intel Coverage1
Digest reports mentioning this CVE
| The Bug Report - January 2022 Edition | trellix | 2022-02-02 |
📎 References24
↗ http://packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.html↗ http://packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html↗ https://access.redhat.com/security/vulnerabilities/RHSB-2022-001↗ https://bugzilla.redhat.com/show_bug.cgi?id=2025869↗ https://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf↗ https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683↗ https://www.oracle.com/security-alerts/cpuapr2022.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.starwindsoftware.com/security/sw-20220818-0001/↗ https://www.suse.com/support/kb/doc/?id=000020564↗ http://packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.html↗ http://packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html↗ https://access.redhat.com/security/vulnerabilities/RHSB-2022-001↗ https://bugzilla.redhat.com/show_bug.cgi?id=2025869↗ https://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf↗ https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683↗ https://www.oracle.com/security-alerts/cpuapr2022.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.starwindsoftware.com/security/sw-20220818-0001/↗ https://www.suse.com/support/kb/doc/?id=000020564↗ https://www.vicarius.io/vsociety/posts/pwnkit-pkexec-lpe-cve-2021-4034↗ https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-4034