CVE-2021-4034Red Hat Polkit Out-of-Bounds Read and Write Vulnerability
CVSS score
7.8
High
CVSS 3.1 from NVD
Exploit probability (EPSS)
94.9%
94.9% chance of exploitation in the next 30 days, higher than 99.9% of all CVEs.
CISA KEV
Actively exploited
Added to KEV on 27 Jun 2022.
US federal deadline to fix: 18 Jul 2022.
Ransomware
Official 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.
Source: NVD · CNA: secalert@redhat.com
How to fix it, step by step
Treat it as urgent
Attackers are already exploiting this flaw: CISA added it to its Known Exploited Vulnerabilities list on 27 Jun 2022.
US federal agencies must fix it by 18 Jul 2022. It's a sensible deadline for everyone else too.
CISA reports it has been used in ransomware attacks.
CISA's full instruction
Apply updates per vendor instructions.
Check whether you're affected
Find every system running polkit_project Polkit, Red Hat Enterprise Linux Server Update Services For Sap Solutions, Red Hat Enterprise Linux Desktop, Red Hat Enterprise Linux Eus, Red Hat Enterprise Linux For Ibm Z Systems Eus and compare its version with the affected versions.
Update to a fixed version
- Update Polkit to 121 or later.
If you can't update right away
Apply the workaround or mitigation in the vendor's advisory until you can update:
Check for signs of compromise
Updating closes the flaw but doesn't remove an attacker who got in earlier. Review affected systems for unknown accounts, unusual logins and configuration changes, and use any indicators of compromise the vendor or CISA publish.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected products
| Affected products | Versions |
|---|---|
| polkit_project Polkit | < 121 |
| Red Hat Enterprise Linux Server Update Services For Sap Solutions | 7.6 · 7.7 · 8.1 · 8.2 · 8.4 |
| Red Hat Enterprise Linux | 8.0 |
| Red Hat Enterprise Linux Desktop | 7.0 |
| Red Hat Enterprise Linux Eus | 8.2 |
| Red Hat Enterprise Linux For Ibm Z Systems | 7.0 · 8.0 |
| Red Hat Enterprise Linux For Ibm Z Systems Eus | 8.2 · 8.4 |
| Red Hat Enterprise Linux For Power Big Endian | 7.0 |
| Red Hat Enterprise Linux For Power Little Endian | 7.0 · 8.0 |
| Red Hat Enterprise Linux For Power Little Endian Eus | 8.1 · 8.2 · 8.4 |
| Red Hat Enterprise Linux For Scientific Computing | 7.0 |
| Red Hat Enterprise Linux Server | 6.0 · 7.0 |
| Red Hat Enterprise Linux Server Aus | 7.3 · 7.4 · 7.6 · 7.7 · 8.2 · 8.4 |
| Red Hat Enterprise Linux Server Eus | 8.4 |
| Red Hat Enterprise Linux Server Tus | 7.6 · 7.7 · 8.2 · 8.4 |
| Red Hat Enterprise Linux Workstation | 7.0 |
| Canonical Ubuntu Linux | 14.04 · 16.04 · 18.04 · 20.04 · 21.10 |
| SUSE Enterprise Storage | 7.0 |
| SUSE Linux Enterprise High Performance Computing | 15.0 |
| SUSE Manager Proxy | 4.1 |
| SUSE Manager Server | 4.1 |
| SUSE Linux Enterprise Desktop | 15 |
| SUSE Linux Enterprise Server | 15 |
| SUSE Linux Enterprise Workstation Extension | 12 |
| Oracle Http Server | 12.2.1.3.0 · 12.2.1.4.0 |
Weakness
Timeline
- Published:
- Added to CISA KEV:
- Last modified:
Frequently asked questions
Is CVE-2021-4034 being exploited?
Yes. CISA added CVE-2021-4034 to its Known Exploited Vulnerabilities catalog on 27 Jun 2022, which means there is evidence of exploitation in the wild. Its EPSS score estimates a 94.9% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2021-4034?
CVE-2021-4034 has a CVSS 3.1 base score of 7.8 (high).
Which versions are affected?
Polkit Project Polkit (< 121), Red Hat Enterprise Linux Server Update Services For Sap Solutions (7.6; 7.7; 8.1; 8.2; 8.4), Red Hat Enterprise Linux (8.0), Red Hat Enterprise Linux Desktop (7.0), Red Hat Enterprise Linux Eus (8.2), Red Hat Enterprise Linux For Ibm Z Systems (7.0; 8.0)
Is there a patch for CVE-2021-4034?
The official record links to vendor advisories or patches; see “What to do” above.
References
- access.redhat.com/security/vulnerabilities/RHSB-2022-001(Mitigation, Vendor Advisory)
- bugzilla.redhat.com/show_bug.cgi?id=2025869(Issue Tracking, Patch)
- gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683(Patch)
- www.oracle.com/security-alerts/cpuapr2022.html(Patch, Third Party Advisory)
- www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt(Exploit, Mitigation, Third Party Advisory)
- packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.html(Exploit, Third Party Advisory, VDB Entry)
- www.secpod.com/blog/local-privilege-escalation-vulnerability-in-major-linux-distributions-cve-2021-4034/(Exploit, Third Party Advisory)
- www.vicarius.io/vsociety/posts/pwnkit-pkexec-lpe-cve-2021-4034(Exploit, Third Party Advisory)
- packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html(Third Party Advisory, VDB Entry)
- cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf(Third Party Advisory)
- www.starwindsoftware.com/security/sw-20220818-0001/(Third Party Advisory)
- www.suse.com/support/kb/doc/?id=000020564(Third Party Advisory)
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-4034(US Government Resource)
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.