NetSight
high7.8Known exploitedPublic exploit code

CVE-2021-4034

Red Hat Polkit Out-of-Bounds Read and Write Vulnerability

Exploited in the wild

This vulnerability is on a Known Exploited Vulnerabilities catalogue, added 2022-06-27. Federal due date: 2022-07-18.

Apply updates per vendor instructions.

Public exploit code

Working exploit or proof of concept code has been published for this vulnerability. Treat unpatched systems as at risk.

Impact

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.

Affected products

VendorProductAffected versions
Polkit ProjectPolkit
before 121
RedhatEnterprise Linux Server Update Services For Sap Solutions
Versions 7.6, 7.7, 8.1, 8.2, 8.4
RedhatEnterprise Linux
Version 8.0
RedhatEnterprise Linux Desktop
Version 7.0
RedhatEnterprise Linux Eus
Version 8.2
RedhatEnterprise Linux For Ibm Z Systems
Versions 7.0, 8.0
RedhatEnterprise Linux For Ibm Z Systems Eus
Versions 8.2, 8.4
RedhatEnterprise Linux For Power Big Endian
Version 7.0
RedhatEnterprise Linux For Power Little Endian
Versions 7.0, 8.0
RedhatEnterprise Linux For Power Little Endian Eus
Versions 8.1, 8.2, 8.4
RedhatEnterprise Linux For Scientific Computing
Version 7.0
RedhatEnterprise Linux Server
Versions 6.0, 7.0

Weakness classification

References