CVE-2021-4034: PwnKit
- Vendors
- StarwindsoftwareRed HatOracle CorporationPolkit ProjectSiemensSuseCanonical
PwnKit is a local privilege-escalation vulnerability in Polkit's SUID-root pkexec utility. Incorrect handling of an empty argument vector causes out-of-bounds access and allows attacker-controlled environment data to influence execution. A local unprivileged attacker can craft the execution environment to induce arbitrary code execution as root. The vulnerability affects Linux systems with a vulnerable SUID-root pkexec installation, including affected Siemens SCALANCE LPE9403 and SINUMERIK Edge devices.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises host confidentiality, integrity, and availability by granting an unprivileged local attacker root-level code execution. Attackers can access protected data and credentials, modify system configuration, create privileged accounts, install persistent backdoors, and disable or disrupt services. Exploitation requires no user interaction.
Mitigation
If you can’t patch tonight, do this now.
Until patched, remove the SUID permission from pkexec to prevent execution with root privileges; this may disrupt legitimate functionality that depends on pkexec. Restrict local access to authorized users and services. Monitor endpoint telemetry for pkexec execution with an empty argument vector, suspicious GCONV_PATH environment values, and unexpected root child processes. Absence of authentication-log events does not exclude exploitation.
Remediation
Patch, then assume compromise.
Install the operating-system vendor's security update for Polkit addressing CVE-2021-4034. For Siemens SCALANCE LPE9403 (6GK5998-3GS00-2AC2), upgrade to V2.0 or later. For Siemens SINUMERIK Edge, upgrade to V3.3.0 or later through the device's internal update mechanism and follow the associated documentation.
Exploits
55 exploits validated by Mallory's analysis. Hidden: 15 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries. Showing the 25 most capable, earliest first.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-4034 exploited in the wild?
- Yes. As of Nov 28, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jun 27, 2022.
- Is there a public exploit for CVE-2021-4034?
- Yes. Mallory tracks 55 public exploits or proofs of concept for CVE-2021-4034, the earliest disclosed Jan 25, 2022.
- Is there a patch for CVE-2021-4034?
- Install the operating-system vendor's security update for Polkit addressing CVE-2021-4034. For Siemens SCALANCE LPE9403 (6GK5998-3GS00-2AC2), upgrade to V2.0 or later.
- What products are affected by CVE-2021-4034?
- Siemens Sinumerik Edge, Polkit Project Polkit, Siemens Scalance Lpe9403 Firmware, Starwindsoftware Command Center, Red Hat Enterprise Linux Desktop, and at least 25 more.
- How severe is CVE-2021-4034?
- CVE-2021-4034 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 94.9% (100th percentile) as of Nov 28, 2026.
Recent activity
78 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.