CVE-2021-4034

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

Actively exploited · CISA KEV Ransomware use: known
7.8 HighCVSS v3.1
94.9%EPSS (30-day exploit probability)
2022-06-27added to KEV
2022-07-18CISA federal due date

Summary

Red Hat Polkit. The Red Hat polkit pkexec utility contains an out-of-bounds read and write vulnerability that allows for privilege escalation with administrative rights.

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.

CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-787, CWE-125
Published
2022-01-28 (last modified 2026-08-15)

What to do

Apply updates per vendor instructions.

  1. Find every instance of Red Hat Polkit in your asset inventory, including internet-facing ones.
  2. Apply the vendor fix or mitigation, or isolate/disconnect the asset until you can.
  3. Hunt for signs of compromise from before you patched; exploitation is already happening in the wild.
  4. Ask critical suppliers whether they are affected and when they will be patched.

FAQ

Is CVE-2021-4034 being exploited?

Yes. CISA added CVE-2021-4034 to its Known Exploited Vulnerabilities catalog on 2022-06-27, which means there is reliable evidence of active exploitation. It is also known to be used in ransomware campaigns.

How do I fix CVE-2021-4034?

CISA required action: Apply updates per vendor instructions.

What is the EPSS score for CVE-2021-4034?

The EPSS score is 94.92%, meaning an estimated 94.92% probability of exploitation activity in the next 30 days (percentile 100).

Other exploited Red Hat vulnerabilities

CVE-2015-5287Red Hat Automatic Bug Reporting Tool Privilege Escalation Vulnerability2026-08-26
CVE-2015-3246Red Hat Libuser Race Condition Vulnerability2026-08-26
CVE-2018-14667Red Hat JBoss RichFaces Framework Expression Language Injection Vulnerability2023-09-28
CVE-2021-3560Red Hat Polkit Incorrect Authorization Vulnerability2023-05-12
CVE-2010-1428Red Hat JBoss Information Disclosure Vulnerability2022-05-25
CVE-2010-0738Red Hat JBoss Authentication Bypass Vulnerability2022-05-25
CVE-2017-12149Red Hat JBoss Application Server Remote Code Execution Vulnerability2021-12-10
CVE-2010-1871Red Hat Linux JBoss Seam 2 Remote Code Execution Vulnerability2021-12-10

All Red Hat exploited CVEs →

Triage many CVEs at once

Paste up to 25 CVEs and get KEV, EPSS and CVSS side by side, with CSV export.

Try Pro CVE triage

Sources: CISA KEV, NIST NVD, FIRST EPSS. This page is informational; verify against the vendor advisory before acting. © CyberStrategiX.