CVE-2021-4034
CVE-2021-4034
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 7.8 · High · EPSS 94.9% · In KEV · Public exploit · Fix available
- Published
- Updated
Stack: system
Affected products and versions
polkit
- Versions
- all: Affected
No fix published
policykit-1 Debian:12
- Affected ranges
- ECOSYSTEM: < 0.105-31.1
Update to 0.105-31.1
policykit-1 Debian:13
- Affected ranges
- ECOSYSTEM: < 0.105-31.1
Update to 0.105-31.1
policykit-1 Debian:14
- Affected ranges
- ECOSYSTEM: < 0.105-31.1
Update to 0.105-31.1
policykit-1 Ubuntu:Pro:14.04:LTS
- Versions
- 0.105-3ubuntu3
- 0.105-4ubuntu1
- 0.105-4ubuntu2
- 0.105-4ubuntu2.14.04.1
- 0.105-4ubuntu3.14.04.1
- 0.105-4ubuntu3.14.04.2
- 0.105-4ubuntu3.14.04.5
- 0.105-4ubuntu3.14.04.6
- Affected ranges
- ECOSYSTEM: < 0.105-4ubuntu3.14.04.6+esm1
Update to 0.105-4ubuntu3.14.04.6+esm1
policykit-1 Ubuntu:Pro:16.04:LTS
- Versions
- 0.105-11ubuntu2
- 0.105-13
- 0.105-13ubuntu1
- 0.105-14
- 0.105-14.1
- 0.105-14.1ubuntu0.1
- 0.105-14.1ubuntu0.4
- 0.105-14.1ubuntu0.5
- Affected ranges
- ECOSYSTEM: < 0.105-14.1ubuntu0.5+esm1
Update to 0.105-14.1ubuntu0.5+esm1
policykit-1 Ubuntu:18.04:LTS
- Versions
- 0.105-18
- 0.105-20
- 0.105-20ubuntu0.18.04.1
- 0.105-20ubuntu0.18.04.4
- 0.105-20ubuntu0.18.04.5
- Affected ranges
- ECOSYSTEM: < 0.105-20ubuntu0.18.04.6
Update to 0.105-20ubuntu0.18.04.6
policykit-1 Ubuntu:20.04:LTS
- Versions
- 0.105-26ubuntu1
- 0.105-26ubuntu1.1
- Affected ranges
- ECOSYSTEM: < 0.105-26ubuntu1.2
Update to 0.105-26ubuntu1.2
policykit-1 Ubuntu:22.04:LTS
- Versions
- 0.105-31
- Affected ranges
- ECOSYSTEM: < 0.105-31ubuntu1
Update to 0.105-31ubuntu1
Original sources
- https://access.redhat.com/security/vulnerabilities/RHSB-2022-001
- https://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt
- 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
- http://packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.html
- http://packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html
- https://www.suse.com/support/kb/doc/?id=000020564
- https://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf
- https://www.starwindsoftware.com/security/sw-20220818-0001/
- 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
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-4034
- https://nvd.nist.gov/vuln/detail/CVE-2021-4034