Actively exploited vulnerability / CVE-2021-4034
Polkit on Linux: an ordinary user can gain administrator rights
This flaw in the Polkit component (the pkexec utility) lets an attacker who already has an ordinary account on a Linux computer or server take administrator rights. With those rights they can fully control the system, read or change company data and install unwanted software. It is on the lists of vulnerabilities used in real attacks kept by CISA (the US cybersecurity agency) and by ENISA (the EU cybersecurity agency).
- Identifier
- CVE-2021-4034 · EUVD-2021-33934
- Severity
- High (7.8/10)
- On the CISA list (US)
- yes, since 27 June 2022
- Deadline given to US federal agencies
- 18 July 2022
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 94.9% (FIRST's estimate for the next 30 days)
Does it concern you?
Polkit is a system component included in most Linux distributions, such as Red Hat, so it is likely present on any Linux server or workstation you run. Some Siemens industrial devices, SINUMERIK Edge and SCALANCE LPE9403, are also affected.
Ask your IT administrator or provider to check the polkit package version on your Linux systems; versions before 121 are affected. For Siemens devices, the firmware version is shown in the management interface: SINUMERIK Edge before 3.3.0 and SCALANCE LPE9403 before 2.0 are affected.
Affected products and versions
- Red Hat Polkit
- polkit: before 121
- sinumerik edge: before 3.3.0
- scalance lpe9403 firmware: before 2.0
What to do
Install the security update from your Linux distribution vendor, bringing polkit to 121 or a patched release. For Siemens devices, update to SINUMERIK Edge 3.3.0 or SCALANCE LPE9403 firmware 2.0, following the vendor's instructions.
Versions that contain the fix: 121, 2.0, 3.3.0.
The official description
The text below is the description from the public database.
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.
Sources
- Debian Security Tracker
- Red Hat Security Data
- CVE Program
- GitHub Advisory Database
- Vendor advisory: nvd.nist.gov
- NVD
- ENISA EUVD
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.