CVE-2021-4034
NVDCVSS scored by NVD (NIST)
Vulnerability Summary
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 v3.1 Base Metrics — Score 7.8 (HIGH)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HAttack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- Polkit Project Polkit < 121
- Redhat Enterprise Linux Server Update Services For Sap Solutions
- Redhat Enterprise Linux
- Redhat Enterprise Linux Desktop
- Redhat Enterprise Linux Eus
- Redhat Enterprise Linux For Ibm Z Systems
- Redhat Enterprise Linux For Ibm Z Systems Eus
- Redhat Enterprise Linux For Power Big Endian
- Redhat Enterprise Linux For Power Little Endian
- Redhat Enterprise Linux For Power Little Endian Eus
- Redhat Enterprise Linux For Scientific Computing
- Redhat Enterprise Linux Server
- Redhat Enterprise Linux Server Aus
- Redhat Enterprise Linux Server Eus
- Redhat Enterprise Linux Server Tus
- Redhat Enterprise Linux Workstation
- Canonical Ubuntu Linux
- Suse Enterprise Storage
- Suse Linux Enterprise High Performance Computing
- Suse Manager Proxy
- Suse Manager Server
- Suse Linux Enterprise Desktop
- Suse Linux Enterprise Server
- Suse Linux Enterprise Workstation Extension
- Oracle Http Server
- Oracle Zfs Storage Appliance Kit
- Siemens Sinumerik Edge < 3.3.0
- Siemens Scalance Lpe9403 Firmware < 2.0
- Starwindsoftware Command Center
- Starwindsoftware Starwind Virtual San
- polkit all
- Polkit Project Polkit 121
- Siemens Sinumerik Edge 3.3.0
- Siemens Scalance Lpe9403 Firmware 2.0
What to do
Patch now. CISA lists this flaw as exploited in the wild and set a federal remediation deadline of Jul 18, 2022.
- Check whether you run Polkit Project Polkit and which version.
- Update to a patched version listed above, then confirm the new version.
- Review logs and exposed services for signs of earlier compromise.
CISA required action: Apply updates per vendor instructions.
CISA KEV Status
Listed in Known Exploited Vulnerabilities
Added: Jun 27, 2022
Remediation due: Jul 18, 2022 (deadline passed)
Known use in ransomware campaigns: Yes
Remediation due: Jul 18, 2022 (deadline passed)
Known use in ransomware campaigns: Yes
Timeline
- Jan 28, 2022Published
- Jun 27, 2022Added to CISA KEV catalog
- Jul 18, 2022KEV remediation due date
- Aug 15, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Polkit Project Polkit CVEsYou are reading CVE-2021-4034. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Exploithttp://packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.html
- Exploithttp://packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html
- Vendor Advisoryhttps://access.redhat.com/security/vulnerabilities/RHSB-2022-001
- Patchhttps://bugzilla.redhat.com/show_bug.cgi?id=2025869
- Advisoryhttps://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf
- Patchhttps://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683
- Patchhttps://www.oracle.com/security-alerts/cpuapr2022.html
- Exploithttps://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt
- Exploithttps://www.secpod.com/blog/local-privilege-escalation-vulnerability-in-major-linux-distributions-cve-2021-4034/
- Vendor Advisoryhttps://www.starwindsoftware.com/security/sw-20220818-0001/
- Advisoryhttps://www.suse.com/support/kb/doc/?id=000020564
- Exploithttp://packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.html
- Exploithttp://packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html
- Vendor Advisoryhttps://access.redhat.com/security/vulnerabilities/RHSB-2022-001
- Patchhttps://bugzilla.redhat.com/show_bug.cgi?id=2025869
- Advisoryhttps://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf
- Patchhttps://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683
- Patchhttps://www.oracle.com/security-alerts/cpuapr2022.html
- Exploithttps://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt
- Exploithttps://www.secpod.com/blog/local-privilege-escalation-vulnerability-in-major-linux-distributions-cve-2021-4034/
- Vendor Advisoryhttps://www.starwindsoftware.com/security/sw-20220818-0001/
- Advisoryhttps://www.suse.com/support/kb/doc/?id=000020564
- Exploithttps://www.vicarius.io/vsociety/posts/pwnkit-pkexec-lpe-cve-2021-4034
- Advisoryhttps://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-4034
Data last checked: Dec 6, 2026 10:06 UTC