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 environment variables to induce arbitrary code execution as root. Vulnerable installations occur across major Linux distributions and in products incorporating affected Polkit components.
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 gives an unprivileged local attacker root privileges, compromising the confidentiality, integrity, and availability of the affected host or device. Root access permits access to protected data and credentials, modification of system configuration, creation of privileged accounts or persistent backdoors, and disruption of services.
Mitigation
If you can’t patch tonight, do this now.
Until patching is possible, remove the SUID permission from pkexec, for example with chmod 0755 /usr/bin/pkexec. This prevents its privileged execution but may disrupt legitimate functionality that depends on it. Restrict local access to authorized personnel and apply least privilege. Monitor for pkexec execution without arguments, suspicious environment values, and unexpected root child processes; absence of authentication-log events does not exclude exploitation.
Remediation
Patch, then assume compromise.
Install the Linux distribution or product vendor's security update 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 using the internal update mechanism and associated documentation.
Exploits
53 exploits validated by Mallory's analysis. Hidden: 14 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 9, 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 53 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 Linux distribution or product vendor's security update 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?
- Polkit Project Polkit, Starwindsoftware Command Center, Red Hat Enterprise Linux Desktop, Red Hat Enterprise Linux Eus, Red Hat Enterprise Linux For Ibm Z Systems, 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 9, 2026.
Recent activity
75 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.