The Red Hat polkit pkexec utility contains an out-of-bounds read and write vulnerability that allows for privilege escalation with administrative rights.
In short
CVE-2021-4034 (Red Hat Polkit Out-of-Bounds Read and Write) has a CVSS 3.1 base score of 7.8, rated high. CISA added it to the Known Exploited Vulnerabilities catalog on 27 Jun 2022, and it has been used in ransomware campaigns. Fixed in Polkit 121, Siemens Sinumerik Edge 3.3.0, Siemens Scalance Lpe9403 Firmware 2.0 or later.
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.
CVSS 3.1 breakdown
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HAffected products
- Oracle HTTP Server12.2.1.3.0 · 12.2.1.4.0
- Oracle Zfs Storage Appliance Kit8.8
- Polkit< 121
- Redhat Enterprise Linux Server Update Services For Sap Solutions7.6 · 7.7 · 8.1 · 8.2
- Siemens Sinumerik Edge< 3.3.0
- Starwindsoftware Command Center1.0
- Starwindsoftware Starwind Virtual Sanv8
- Suse Enterprise Storage7.0
- Suse Linux Enterprise High Performance Computing15.0
- Suse Manager Proxy4.1
- Suse Manager Server4.1
- Canonical Ubuntu Linux14.04 · 16.04 · 18.04 · 20.04
- Redhat Enterprise Linux8.0
- Redhat Enterprise Linux Desktop7.0
- Redhat Enterprise Linux Eus8.2
- Redhat Enterprise Linux For Ibm Z Systems7.0 · 8.0
- Redhat Enterprise Linux For Ibm Z Systems Eus8.2 · 8.4
- Redhat Enterprise Linux For Power Big Endian7.0
- Redhat Enterprise Linux For Power Little Endian7.0 · 8.0
- Redhat Enterprise Linux For Power Little Endian Eus8.1 · 8.2 · 8.4
- Redhat Enterprise Linux For Scientific Computing7.0
- Redhat Enterprise Linux Server6.0 · 7.0
- Redhat Enterprise Linux Server Aus7.3 · 7.4 · 7.6 · 7.7
- Redhat Enterprise Linux Server Eus8.4
Remediation
Fixed in- Polkit≥ 121
- Siemens Sinumerik Edge≥ 3.3.0
- Siemens Scalance Lpe9403 Firmware≥ 2.0
References
- 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.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-4034
- 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/
and 3 more references
Related CVEs
Exploited and critical vulnerabilities in the same product or from the same vendor.
Data from the NVD, CISA KEV catalog and FIRST EPSS. The CVSS 4.0 base score is shown where the NVD has one, otherwise CVSS 3.1.
