CVE-2021-4034
Exploitation confirmed. First attested on 2022-06-27 by CISA-ADP, CISA KEV, GCVE · kevintel.
- Published2022-01-28
- WeaknessCWE-125 · CWE-787
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2022-01-27Exploit-DB entryExploit-DB
- 2022-01-2820:15CVE publishedNVD
- 2022-06-27Added to the CISA KEV catalogCISA KEV
- 2022-06-27Listed as exploited by GCVEGCVE
- 2022-06-27Exploitation first reportedCISA KEV
- 2025-10-1210:21SSVC exploitation set to activeCISA-ADP
Observed activity
isMalicious corpus · updated 2026-11-03 21:37 UTC| Indicator | Role | Seen | Source |
|---|---|---|---|
| 0e7c96a22e3612c68866a8693cc583df95972d3444978ce163c024a45682133a | payload | 1 day ago | MalwareBazaar - Full SHA-256 Hashes, MalwareBazaar - Full CSV (file metadata), AlienVault OTX - Subscribed Pulse Indicators, Rösti - MISP OSINT Feed, Community IOC feed |
Block these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2021-4034?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2021-4034?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 7.3 | = 7.3 | no fix published | NVD |
| 7.4 | = 7.4 | no fix published | NVD |
| 7.6 | = 7.6 | no fix published | NVD |
| 7.7 | = 7.7 | no fix published | NVD |
| 8.2 | = 8.2 | no fix published | NVD |
| 8.4 | = 8.4 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 14.4 | = 14.04 | no fix published | NVD |
| 16.4 | = 16.04 | no fix published | NVD |
| 18.4 | = 18.04 | no fix published | NVD |
| 20.4 | = 20.04 | no fix published | NVD |
| 21.10 | = 21.10 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 7.6 | = 7.6 | no fix published | NVD |
| 7.7 | = 7.7 | no fix published | NVD |
| 8.1 | = 8.1 | no fix published | NVD |
| 8.2 | = 8.2 | no fix published | NVD |
| 8.4 | = 8.4 | no fix published | NVD |
27 more products in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As redhat, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- polkitAffected
- all versionsno fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-10-18
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- policykit-1Ubuntu:Pro:16.04:LTSall versions · fixed in 0.105-14.1ubuntu0.5+esm1
- policykit-1Ubuntu:Pro:14.04:LTSall versions · fixed in 0.105-4ubuntu3.14.04.6+esm1
- policykit-1Ubuntu:22.04:LTSall versions · fixed in 0.105-31ubuntu1
- policykit-1Ubuntu:20.04:LTSall versions · fixed in 0.105-26ubuntu1.2
- policykit-1Ubuntu:18.04:LTSall versions · fixed in 0.105-20ubuntu0.18.04.6
- policykit-1TuxCare:Ubuntu:16.04all versions · fixed in 0.105-14.1ubuntu0.5+tuxcare.els1and 8 other packages
- policykit-1Debian:14all versions · fixed in 0.105-31.1
- policykit-1Debian:13all versions · fixed in 0.105-31.1
84 more package ranges on OSV.dev
Vendor advisories
polkit: Local privilege escalation in pkexec due to incorrect handling of argument vector
Siemens SCALANCE, RUGGEDCOM Third-Party
RUGGEDCOM RM1224 LTE(4G) EU (6GK6108-4AM00-2BA2) · RUGGEDCOM RM1224 LTE(4G) NAM (6GK6108-4AM00-2DA2) · SCALANCE M804PB (6GK5804-0AP00-2AA2) · +17 more
SSA-419740: Multiple Third-Party Component Vulnerabilities in RUGGEDCOM and SCALANCE Products before V7.2
RUGGEDCOM RM1224 LTE(4G) EU (6GK6108-4AM00-2BA2) · RUGGEDCOM RM1224 LTE(4G) NAM (6GK6108-4AM00-2DA2) · SCALANCE M804PB (6GK5804-0AP00-2AA2) · +17 more
Hitachi Energy APM Edge
Lumada APM Edge: Version 3.0 · Lumada APM Edge: Version 1.0 · Lumada APM Edge: Version 4.0 · +1 more
Siemens SCALANCE LPE 4903 and SINUMERIK Edge
SCALANCE LPE9403 · SINUMERIK Edge
SSA-330556: PwnKit Vulnerability in SCALANCE LPE9403 and SINUMERIK Edge Products (CVE-2021-4034)
SCALANCE LPE9403 · SINUMERIK Edge
12 more advisories
Fix
- CISA’s required action: Apply updates per vendor instructions.due 2022-07-18
- Vendor fix Siemens ProductCERT SSA-419740 · 20 productsUpdate to V7.2 or later version
- Vendor fix CISA ICSA-23-075-01 · 20 productsUpdate to V7.2 or later version
- Vendor fix CISA ICSA-22-270-02 · 4 productsWhen applicable, Hitachi Energy recommends users update to Lumada APM Edge v6.3 at the earliest convenience.
- Vendor fix CISA ICSA-22-167-16 · 1 productUpdate to V2.0 or later version
- Vendor fix CISA ICSA-22-167-16 · 1 productUpdate to V3.3.0 or later version
- Vendor fix Siemens ProductCERT SSA-330556 · 1 productUpdate to V2.0 or later version
Advisories and patches
- access.redhat.comMitigation · Vendor Advisory
- bugzilla.redhat.comPatch
- gitlab.freedesktop.orgPatch
- www.oracle.comPatch
- www.qualys.comMitigation
Detection
read 2026-11-03 22:42 UTC- Nuclei template
- none so far ProjectDiscovery
- Proof-of-concept repositories
- 20 repositories, unverifiedryaagard/CVE-2021-4034berdav/CVE-2021-4034clubby789/CVE-2021-4034gbrsh/CVE-2021-4034arthepsy/CVE-2021-4034 PoC-in-GitHub
- Metasploit modules
- 1 moduleexploit/linux/local/cve_2021_4034_pwnkit_lpe_pkexecrank: excellentModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
CISA Known Exploited Vulnerability
- Date Added
- 2022-06-27
- Patch Due Date
- 2022-07-18
- Ransomware Use
- Unknown
- Required Action
- Apply updates per vendor instructions.
Sources
- CISA KEVKEV entry2022-06-27
- ENISA EUVDexploitation2022-06-272022-06-27
- GCVEexploitation2022-06-27
- CISA-ADPSSVC decisionactive2025-10-12
- OpenCVESSVC decisionactive—
- CISA-ADPCVSS 3.17.82024-10-29
- NVDCVSS 3.17.8read 2026-10-23
- NVDCVSS 2.07.2read 2026-10-23
- CNAweakness (CWE)CWE-787known since 2026-10-23
- NVDweakness (CWE)CWE-125, CWE-787read 2026-10-23
- FIRST EPSSEPSS score94.9 %read 2026-11-03
- PoC-in-GitHubproof of concept20read 2026-11-03
- Exploit-DBdetectionread 2026-11-03
- Metasploit FrameworkMetasploit modules1known since 2026-11-01
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-8335same flawAzure Linux · MIT
- EUVD-2021-33934same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-qgr2-xgqv-24x8same flawGitHub Advisory Database · CC-BY-4.0
- exploit/linux/local/cve_2021_4034_pwnkit_lpe_pkexecexploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
- ALSA-2022:0267advisory covering several CVEsAlmaLinux · MIT
- DLA-2899-1advisory covering several CVEsDebian · LicenseRef-unstated
- DSA-5059-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2022-0037advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2022-1502advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2022:0190-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- openSUSE-SU-2024:11780-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2022:0265advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0266advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0267advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0268advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0269advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0270advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0271advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0272advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0273advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0274advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0443advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2022:0540advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2022:0267advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2022:0189-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:0190-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2022:0191-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-5252-1advisory covering several CVEsUbuntu
- USN-5252-2advisory covering several CVEsUbuntu
Technical details
- CVSS v3 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
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-qgr2-xgqv-24x8
Frequently asked questions
What is CVE-2021-4034?
Is CVE-2021-4034 actively exploited?
What is the CVSS score for CVE-2021-4034?
Running polkit? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- For a threat intelligence platform: malware, C2 and ransomware indicators over STIX/TAXII.
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA ICS advisories (CSAF) · Public domain (US Government work)
- CISA KEV · CC0-1.0 (cisagov/kev-data)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GCVE · GCVE dump terms (preserve source attribution)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-qgr2-xgqv-24x8
- Metasploit Framework · BSD-3-Clause
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- Siemens ProductCERT (CSAF) · TLP:WHITE (commercial use and redistribution granted)
- CISA Vulnrichment · CC0-1.0