patchminder
Exploited in the wildUsed by ransomwareCVE-2021-4034

PwnKit.Code execution.

PwnKit is the nickname of CVE-2021-4034 in Red Hat Polkit. 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. CISA: The Red Hat polkit pkexec utility contains an out-of-bounds read and write vulnerability that allows for privilege escalation with administrative rights.

Name used by: Qualys

Exploited
Yes
On CISA's exploited list since 27 Jun 2022
Severity
High 7.8
CVSS 3.1 · CISA assessment
Attack likelihood
Very high
EPSS 94.9% chance in 30 days · 4 Dec 2026
Fix
Not confirmed
No source names a fixed version yet
Timeline

From publication to today

29 Nov 2021
CVE ID reserved by redhat.
25 Jan 2022
First public proof of concept on GitHub.
25 Jan 2022
Metasploit module: Local Privilege Escalation in polkits pkexec.
28 Jan 2022
Published in the CVE List.
27 Jun 2022
Added to CISA's Known Exploited Vulnerabilities list.
27 Jun 2022
CISA lists known use in ransomware campaigns.
15 Aug 2026
CVE record last updated.
What to do

Fix it

  • CISA requires US federal agencies to fix it by 18 Jul 2022.
Affected products

Affected and fixed versions

Product and line
Affected
Fixed in
polkit
Not confirmed
Not confirmed
Everything else

The full page for CVE-2021-4034

Severity details, every source, exploit references with their warnings, and the version check.

Open CVE-2021-4034All named vulnerabilities