CVE
CVE-2021-4034
A local privilege escalation vulnerability was found on polkit's pkexec utility.
Severity
High
Base CVSS
7.8
Fixed in
a2bf5c9c83b6ae46cbd5c779d3055bff81ded683,0:0.96-11.el6_10.2,0:0.112-26.el7_9.1,0:0.115-13.el8_5.1,0.105-25+deb10u1,0.105-31+deb11u1,0.105-31.1,0.105-20ubuntu0.18.04.6,0.105-26ubuntu1.2,0.105-31ubuntu1,0.120-r2,0.119-r8,121,0:0.115-13.0.1.el8_5.1,0:0.112-26.0.1.el7_9.1,0:0.112-26.amzn2.1,0:0.117-10.amzn2023.0.3
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.
Severity scores
Source
Severity
Base score
CVSS version
Score vector
NVD
High
7.8
3.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV
0
3.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Endor Labs
Required action
Apply updates per vendor instructions.
Known ransomware campaign use
Known
References
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?fieldcve=CVE-2021-4034, http://packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html, https://access.redhat.com/security/vulnerabilities/RHSB-2022-001, https://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf, https://www.starwindsoftware.com/security/sw-20220818-0001/, https://www.suse.com/support/kb/doc/?id=000020564, https://bugzilla.redhat.com/showbug.cgi?id=2025869, https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683, https://www.oracle.com/security-alerts/cpuapr2022.html, 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
Basic information
Base CVSS
7.8
EPSS probability
0.9
EPSS percentile
0.99859
Introduced version
0
Fix available
a2bf5c9c83b6ae46cbd5c779d3055bff81ded683,0:0.96-11.el6_10.2,0:0.112-26.el7_9.1,0:0.115-13.el8_5.1,0.105-25+deb10u1,0.105-31+deb11u1,0.105-31.1,0.105-20ubuntu0.18.04.6,0.105-26ubuntu1.2,0.105-31ubuntu1,0.120-r2,0.119-r8,121,0:0.115-13.0.1.el8_5.1,0:0.112-26.0.1.el7_9.1,0:0.112-26.amzn2.1,0:0.117-10.amzn2023.0.3
Endor Patches
Fix critical vulnerabilities instantly
Secure your app without upgrading: detect a compatible fix, apply safe remediation, and ship it in a single pull request.
Fix without upgradingGet a demo of Endor Labs today.