CVE-2021-4034 in Canonical Ubuntu Linux and 66 more products
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.
Affects 67 products from 7 vendors. Description from NVD and MITRE.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Canonical | Ubuntu Linux | 14.04 16.04 18.04 20.04 21.10 |
| Oracle | Http Server | 12.2.1.3.0 12.2.1.4.0 |
| Oracle | Zfs Storage Appliance Kit | 8.8 |
| Polkit Project | Polkit | < 121 |
| Redhat | Enterprise Linux Eus | 8.2 |
| Redhat | Enterprise Linux For Ibm Z Systems | 7.0 8.0 |
| Redhat | Enterprise Linux For Power Big Endian | 7.0 |
| Redhat | Enterprise Linux Server Aus | 7.3 7.4 7.6 7.7 8.2 8.4 |
| Redhat | Enterprise Linux Server Eus | 8.4 |
| Redhat | Enterprise Linux For Scientific Computing | 7.0 |
| Redhat | Enterprise Linux For Ibm Z Systems Eus | 8.2 8.4 |
| Redhat | Enterprise Linux Server Tus | 7.6 7.7 8.2 8.4 |
| Redhat | Enterprise Linux For Power Little Endian | 7.0 8.0 |
| Redhat | Enterprise Linux For Power Little Endian Eus | 8.1 8.2 8.4 |
| Redhat | Enterprise Linux Server Update Services For Sap Solutions | 7.6 7.7 8.1 8.2 8.4 |
| Redhat | Enterprise Linux Desktop | 7.0 |
| Redhat | Enterprise Linux | 8.0 |
| Redhat | Enterprise Linux Workstation | 7.0 |
| Redhat | Enterprise Linux Server | 6.0 7.0 |
| Siemens | SINUMERIK Edge | < 3.3.0 |
| Siemens | SCALANCE M812-1 Adsl-Router (device and firmware) | < 7.2 |
| Siemens | SCALANCE M816-1 Adsl-Router (device and firmware) | < 7.2 |
| Siemens | SCALANCE M826-2 Shdsl-Router (device and firmware) | < 7.2 |
| Siemens | SCALANCE S615 Eec (device and firmware) | < 7.2 |
| Siemens | 6GK5615-0AA01-2AA2 (device and firmware) | < 7.2 |
| Siemens | SCALANCE S615 (device and firmware) | < 7.2 |
| Siemens | SCALANCE LPE9403 (device and firmware) | < 2.0 |
| Siemens | SCALANCE M804PB (device and firmware) | < 7.2 |
| Siemens | SCALANCE M874-2 (device and firmware) | < 7.2 |
| Siemens | SCALANCE M876-3 (device and firmware) | < 7.2 |
| Siemens | SCALANCE M876-4 (device and firmware) | < 7.2 |
| Siemens | SCALANCE MUM856-1 (device and firmware) | < 7.2 |
| Siemens | 6GK5812-1AA00-2AA2 (device and firmware) | < 7.2 |
| Siemens | 6GK5812-1BA00-2AA2 (device and firmware) | < 7.2 |
| Siemens | 6GK5816-1AA00-2AA2 (device and firmware) | < 7.2 |
| Siemens | 6GK5816-1BA00-2AA2 (device and firmware) | < 7.2 |
| Siemens | 6GK5876-3AA02-2BA2 (device and firmware) | < 7.2 |
| Siemens | 6GK5615-0AA00-2AA2 (device and firmware) | < 7.2 |
| Siemens | SCALANCE MUM853-1 (device and firmware) | < 7.2 |
| Starwindsoftware | Starwind Virtual San | v8 |
| Starwindsoftware | Command Center | 1.0 |
| Suse | Manager Proxy | 4.1 |
| Suse | Manager Server | 4.1 |
| Suse | Linux Enterprise High Performance Computing | 15.0 |
| Suse | Linux Enterprise Workstation Extension | 12 |
| Suse | Linux Enterprise Server | 15 |
| Suse | Linux Enterprise Desktop | 15 |
| Suse | Enterprise Storage | 7.0 |
| Siemens | 6Gk5853-2Ea00-2Da1 (device and firmware) | < 7.2 |
| Siemens | 6Gk5856-2Ea00-3Aa1 (device and firmware) | < 7.2 |
| Siemens | 6Gk5856-2Ea00-3Da1 (device and firmware) | < 7.2 |
| Siemens | 6Gk5874-3Aa00-2Aa2 (device and firmware) | < 7.2 |
| Siemens | 6Gk5876-3Aa02-2Ea2 (device and firmware) | < 7.2 |
| Siemens | 6Gk5876-4Aa00-2Ba2 (device and firmware) | < 7.2 |
| Siemens | 6Gk5876-4Aa00-2Da2 (device and firmware) | < 7.2 |
| Siemens | 6Gk6108-4Am00-2Ba2 (device and firmware) | < 7.2 |
| Siemens | 6Gk6108-4Am00-2Da2 (device and firmware) | < 7.2 |
| Siemens | Ruggedcom Rm1224 Lte(4G) Eu Firmware | < 7.2 |
| Siemens | Ruggedcom Rm1224 Lte(4G) Nam Firmware | < 7.2 |
| Siemens | Scalance M874-3 Firmware | < 7.2 |
Fix and vendor advisory
- SCALANCE LPE9403: Update to V2.0 or later version
- SINUMERIK Edge: Update to V3.3.0 or later version
Source: ICSA-22-167-16
- When applicable, Hitachi Energy recommends users update to Lumada APM Edge v6.3 at the earliest convenience.
Source: ICSA-22-270-02
- RUGGEDCOM RM1224 LTE(4G) EU (6GK6108-4AM00-2BA2), RUGGEDCOM RM1224 LTE(4G) NAM (6GK6108-4AM00-2DA2), SCALANCE M804PB (6GK5804-0AP00-2AA2) and 17 more: Update to V7.2 or later version
Source: ICSA-23-075-01
- Update to newest version
Source: SCA-2022-0002
Exploitation
| CISA known-exploited | Yes added 2022-06-27 |
|---|---|
| Public exploit | Reported · reference |
Record details
| CVE ID | CVE-2021-4034 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-246643-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2022-01-28 |
| Last modified | 2026-08-15 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement strict user and process isolation policies to limit the impact of potential privilege escalation. Regularly audit system logs for suspicious activity.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-08-15.