CVE-2021-4034: Red Hat Polkit Out-of-Bounds Read and Write Vulnerability

High severity, CVSS 7.8. Actively exploited: in CISA KEV since 2022-06-27. EPSS: 95% probability of exploitation activity in the next 30 days.

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.

What to do

CISA's required action (US federal agencies, by 2022-07-18): Apply updates per vendor instructions.

The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.

  • Polkit Project Polkit, before 121: fixed in 121
  • Siemens Scalance LPE9403 Firmware, before 2.0: fixed in 2.0
  • Siemens Sinumerik Edge, before 3.3.0: fixed in 3.3.0

Affected products

Published 2022-01-28. Last modified 2026-08-15.