Skip to content
RedCVE

CVE-2021-4034Red Hat Polkit Out-of-Bounds Read and Write Vulnerability

ExploitedRansomwarepolkit_projectRed HatCanonicalSUSEOraclePublished:

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

  1. 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.
  2. 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.

  3. Update to a fixed version

    • Update Polkit to 121 or later.
  4. 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.

  5. 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 productsVersions
polkit_project Polkit< 121
Red Hat Enterprise Linux Server Update Services For Sap Solutions7.6 · 7.7 · 8.1 · 8.2 · 8.4
Red Hat Enterprise Linux8.0
Red Hat Enterprise Linux Desktop7.0
Red Hat Enterprise Linux Eus8.2
Red Hat Enterprise Linux For Ibm Z Systems7.0 · 8.0
Red Hat Enterprise Linux For Ibm Z Systems Eus8.2 · 8.4
Red Hat Enterprise Linux For Power Big Endian7.0
Red Hat Enterprise Linux For Power Little Endian7.0 · 8.0
Red Hat Enterprise Linux For Power Little Endian Eus8.1 · 8.2 · 8.4
Red Hat Enterprise Linux For Scientific Computing7.0
Red Hat Enterprise Linux Server6.0 · 7.0
Red Hat Enterprise Linux Server Aus7.3 · 7.4 · 7.6 · 7.7 · 8.2 · 8.4
Red Hat Enterprise Linux Server Eus8.4
Red Hat Enterprise Linux Server Tus7.6 · 7.7 · 8.2 · 8.4
Red Hat Enterprise Linux Workstation7.0
Canonical Ubuntu Linux14.04 · 16.04 · 18.04 · 20.04 · 21.10
SUSE Enterprise Storage7.0
SUSE Linux Enterprise High Performance Computing15.0
SUSE Manager Proxy4.1
SUSE Manager Server4.1
SUSE Linux Enterprise Desktop15
SUSE Linux Enterprise Server15
SUSE Linux Enterprise Workstation Extension12
Oracle Http Server12.2.1.3.0 · 12.2.1.4.0

Weakness

Timeline

  1. Published:
  2. Added to CISA KEV:
  3. 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

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.