CVE-2021-4034

HIGHCVSS 7.8/10Actively ExploitedEPSS 94.92%

Last modified

CVE-2021-4034 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. CISA has confirmed active exploitation in the wild. EPSS estimates a 94.92% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
7.8/10

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
94.92%

99.9th percentile

Probability of exploitation in the next 30 days. Learn more

Exploitation Status

This vulnerability is listed in CISA’s Known Exploited Vulnerabilities catalog, confirming active exploitation in the wild. Federal agencies must remediate by .

Weakness Enumeration

Affected Software

VendorProductVersionsUpdate
Polkit ProjectPolkit< 121
RedhatEnterprise Linux Server Update Services For Sap Solutions7.6
RedhatEnterprise Linux Server Update Services For Sap Solutions7.7
RedhatEnterprise Linux8.0
RedhatEnterprise Linux Desktop7.0
RedhatEnterprise Linux Eus8.2
RedhatEnterprise Linux For Ibm Z Systems7.0
RedhatEnterprise Linux For Ibm Z Systems8.0
RedhatEnterprise Linux For Ibm Z Systems Eus8.2
RedhatEnterprise Linux For Ibm Z Systems Eus8.4
RedhatEnterprise Linux For Power Big Endian7.0
RedhatEnterprise Linux For Power Little Endian7.0
RedhatEnterprise Linux For Power Little Endian8.0
RedhatEnterprise Linux For Power Little Endian Eus8.1
RedhatEnterprise Linux For Power Little Endian Eus8.2
RedhatEnterprise Linux For Power Little Endian Eus8.4
RedhatEnterprise Linux For Scientific Computing7.0
RedhatEnterprise Linux Server6.0
RedhatEnterprise Linux Server7.0
RedhatEnterprise Linux Server Aus7.3
RedhatEnterprise Linux Server Aus7.4
RedhatEnterprise Linux Server Aus7.6
RedhatEnterprise Linux Server Aus7.7
RedhatEnterprise Linux Server Aus8.2
RedhatEnterprise Linux Server Aus8.4
RedhatEnterprise Linux Server Eus8.4
RedhatEnterprise Linux Server Tus7.6
RedhatEnterprise Linux Server Tus7.7
RedhatEnterprise Linux Server Tus8.2
RedhatEnterprise Linux Server Tus8.4
RedhatEnterprise Linux Server Update Services For Sap Solutions8.1
RedhatEnterprise Linux Server Update Services For Sap Solutions8.2
RedhatEnterprise Linux Server Update Services For Sap Solutions8.4
RedhatEnterprise Linux Workstation7.0
CanonicalUbuntu Linux14.04
CanonicalUbuntu Linux16.04
CanonicalUbuntu Linux18.04
CanonicalUbuntu Linux20.04
CanonicalUbuntu Linux21.10
SuseEnterprise Storage7.0
SuseLinux Enterprise High Performance Computing15.0Sp2
SuseManager Proxy4.1
SuseManager Server4.1
SuseLinux Enterprise Desktop15Sp2
SuseLinux Enterprise Server15Sp2
SuseLinux Enterprise Workstation Extension12Sp5
OracleHttp Server12.2.1.3.0
OracleHttp Server12.2.1.4.0
OracleZfs Storage Appliance Kit8.8
SiemensSinumerik Edge< 3.3.0

Showing 50 of 53 affected configurations. See NVD for the full list.

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is CVE-2021-4034?
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.
How severe is CVE-2021-4034?
CVE-2021-4034 has a CVSS score of 7.8/10 (HIGH severity). The EPSS model estimates a 94.92% probability of exploitation in the next 30 days. This vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog.
How do I fix CVE-2021-4034?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-4034?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST