CVE-2021-4034: Local Privilege Escalation in polkit's pkexec

CVE-2021-4034 affects 62 listed versions of Aruba ClearPass Policy Manager in the Dawnsentry catalogue. It is known to be exploited in the wild.

7.8CVSS high
In CISA's KEV catalogue since 2022-06-27exploitation
95%EPSS (next 30 days)
28 January 2022published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Aruba ClearPass Policy Manager

62 of 113 listed versions are affected. Fixed in 6.10.3-HF1, 6.9.9-HF1, 6.8.9-HF2, 6.8.9-hotfix2. The newest release, 6.14.1-HF3, is not affected.

6.10.3 6.10.2 6.9.9 6.9.7 6.9.6 6.9.5 6.9.4 6.9.3 6.9.2 6.8.9-hotfix1 6.8.9_Hotfix_for_Q1_2022_Security_issues 6.8.9 6.8.8 6.8.7 6.8.6 6.8.5 6.8.4 6.8.1 6.7.14 6.7.13 6.7.12 6.7.6 6.7.5 6.7.3 6.7.2 6.7.1 6.6.10 6.6.9 6.6.5 6.6.2 6.6.0 6.5.7 6.5.6 6.5.5 6.5.4 6.5.3 6.5.2 6.5.1 6.5.0 6.5 6.4.7 6.4.6 6.4.5 6.4.4 6.4.3 6.4.2 6.4.0 6.3.6 6.3.5 6.3.4 6.3.0.61712 6.3.0.60730 6.3 6.2.6.62196 6.2.6 6.2.5.61640 6.2 6.1.4.61696 6.1.4 6.1 and 2 more

What it is

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:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by Red Hat on 28 January 2022. Last changed 15 August 2026. CISA lists it as used in ransomware campaigns. Exploit code is public (Metasploit or Nuclei).

Sources

Check one version you run: look CVE-2021-4034 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.