ZeroDay Brief
CVE-2021-4034 Exploited in the wild Used in ransomware

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

CVSS
7.8High
Chance of exploitation (EPSS)
95%
Published
Jan 28, 2022
In the news
Not yet
Vendor advisory More from this vendor

What to do

A serious memory corruption flaw in Canonical Ubuntu Linux, Oracle HTTP Server, Oracle Zfs Storage Appliance Kit and 28 more that needs access to the machine itself. Attackers are already using it, so treat it as urgent.

Action: Apply updates per vendor instructions.

US federal agencies must fix this by Jul 18, 2022 (past due).

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.

CWE-787CWE-125

Affected products

Get alerts for these →

Timeline 7

Latest change: Nessus plugin 388338: CentOS Linux 8.5 [TuxCare] Security Update: polkit / polkit-devel / polkit-docs / polkit-libs (CENTOS8.5:CLSA-2022:1643291562) (Nov 29, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

Exploit code

Visit at your own risk. These are third-party sites we find automatically. We do not test, review or vouch for them, and fake proof-of-concept repositories sometimes contain malware.

References 24

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”