CVE-2021-4034
published high CVSS 3.1 · 7.8polkit: Local privilege escalation in pkexec due to incorrect handling of argument vector
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | polkitall | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluationALAS2-2022-1745 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-026 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | polkit | Advisory build | 0.115-13.el8_5.2 | ALSA-2022:0267 |
| Alpine Linux | edge | polkit | Fixed | 0.120-r2 | Package fix record |
| Oracle Linux | 6 | polkiti686 | Advisory build | 0:0.96-11.0.1.el6_10.1 | ELSA-2022-9073 |
| Red Hat Enterprise Linux | RHEL-6 | polkiti686 | Advisory build | 0.96-11.el6_10.2 | RHSA-2022:0269 |
| SUSE / openSUSE | SLE-12-SP2 | polkitx86_64 | Advisory build | 0.113-5.24.1 | SUSE-SU-2022:0189-1 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.15 | polkit | Fixed | 0.119-r8 | Package fix record |
| Alpine Linux | v3.16 | polkit | Fixed | 0.120-r2 | Package fix record |
| Alpine Linux | v3.17 | polkit | Fixed | 0.120-r2 | Package fix record |
| Alpine Linux | v3.18 | polkit | Fixed | 0.120-r2 | Package fix record |
| Alpine Linux | v3.19 | polkit | Fixed | 0.120-r2 | Package fix record |
| Alpine Linux | v3.20 | polkit | Fixed | 0.120-r2 | Package fix record |
| Alpine Linux | v3.21 | polkit | Fixed | 0.120-r2 | Package fix record |
| Alpine Linux | v3.22 | polkit | Fixed | 0.120-r2 | Package fix record |
| Alpine Linux | v3.23 | polkit | Fixed | 0.120-r2 | Package fix record |
| Alpine Linux | v3.24 | polkit | Fixed | 0.120-r2 | Package fix record |
| Oracle Linux | 6 | polkitx86_64 | Advisory build | 0:0.96-11.0.1.el6_10.1 | ELSA-2022-9073 |
| Oracle Linux | 7 | polkitaarch64 | Advisory build | 0:0.112-26.0.1.el7_9.1 | ELSA-2022-0274 |
| Oracle Linux | 7 | polkitx86_64 | Advisory build | 0:0.112-26.0.1.el7_9.1 | ELSA-2022-0274 |
| Oracle Linux | 8 | polkitaarch64 | Advisory build | 0:0.115-13.0.1.el8_5.1 | ELSA-2022-0267 |
| Oracle Linux | 8 | polkitx86_64 | Advisory build | 0:0.115-13.0.1.el8_5.1 | ELSA-2022-0267 |
| Red Hat Enterprise Linux | RHEL-6 | polkits390 | Advisory build | 0.96-11.el6_10.2 | RHSA-2022:0269 |
| Red Hat Enterprise Linux | RHEL-6 | polkits390x | Advisory build | 0.96-11.el6_10.2 | RHSA-2022:0269 |
| Red Hat Enterprise Linux | RHEL-6 | polkitsrc | Advisory build | 0.96-11.el6_10.2 | RHSA-2022:0269 |
| Red Hat Enterprise Linux | RHEL-6 | polkitx86_64 | Advisory build | 0.96-11.el6_10.2 | RHSA-2022:0269 |
| Red Hat Enterprise Linux | RHEL-7 | polkiti686 | Advisory build | 0.112-12.el7_3.1 | RHSA-2022:0270 |
| Red Hat Enterprise Linux | RHEL-7 | polkiti686 | Advisory build | 0.112-12.el7_4.2 | RHSA-2022:0272 |
| Red Hat Enterprise Linux | RHEL-7 | polkiti686 | Advisory build | 0.112-18.el7_6.3 | RHSA-2022:0271 |
| Red Hat Enterprise Linux | RHEL-7 | polkiti686 | Advisory build | 0.112-22.el7_7.2 | RHSA-2022:0273 |
| Red Hat Enterprise Linux | RHEL-7 | polkiti686 | Advisory build | 0.112-26.el7_9.1 | RHSA-2022:0274 |
| Red Hat Enterprise Linux | RHEL-7 | polkitppc | Advisory build | 0.112-26.el7_9.1 | RHSA-2022:0274 |
| Red Hat Enterprise Linux | RHEL-7 | polkitppc64 | Advisory build | 0.112-26.el7_9.1 | RHSA-2022:0274 |
| Red Hat Enterprise Linux | RHEL-7 | polkitppc64le | Advisory build | 0.112-18.el7_6.3 | RHSA-2022:0271 |
| Red Hat Enterprise Linux | RHEL-7 | polkitppc64le | Advisory build | 0.112-22.el7_7.2 | RHSA-2022:0273 |
| Red Hat Enterprise Linux | RHEL-7 | polkitppc64le | Advisory build | 0.112-26.el7_9.1 | RHSA-2022:0274 |
| Red Hat Enterprise Linux | RHEL-7 | polkits390 | Advisory build | 0.112-26.el7_9.1 | RHSA-2022:0274 |
| Red Hat Enterprise Linux | RHEL-7 | polkits390x | Advisory build | 0.112-26.el7_9.1 | RHSA-2022:0274 |
| Red Hat Enterprise Linux | RHEL-7 | polkitsrc | Advisory build | 0.112-12.el7_3.1 | RHSA-2022:0270 |
| Red Hat Enterprise Linux | RHEL-7 | polkitsrc | Advisory build | 0.112-12.el7_4.2 | RHSA-2022:0272 |
| Red Hat Enterprise Linux | RHEL-7 | polkitsrc | Advisory build | 0.112-18.el7_6.3 | RHSA-2022:0271 |
| Red Hat Enterprise Linux | RHEL-7 | polkitsrc | Advisory build | 0.112-22.el7_7.2 | RHSA-2022:0273 |
| Red Hat Enterprise Linux | RHEL-7 | polkitsrc | Advisory build | 0.112-26.el7_9.1 | RHSA-2022:0274 |
| Red Hat Enterprise Linux | RHEL-7 | polkitx86_64 | Advisory build | 0.112-12.el7_3.1 | RHSA-2022:0270 |
| Red Hat Enterprise Linux | RHEL-7 | polkitx86_64 | Advisory build | 0.112-12.el7_4.2 | RHSA-2022:0272 |
| Red Hat Enterprise Linux | RHEL-7 | polkitx86_64 | Advisory build | 0.112-18.el7_6.3 | RHSA-2022:0271 |
| Red Hat Enterprise Linux | RHEL-7 | polkitx86_64 | Advisory build | 0.112-22.el7_7.2 | RHSA-2022:0273 |
| Red Hat Enterprise Linux | RHEL-7 | polkitx86_64 | Advisory build | 0.112-26.el7_9.1 | RHSA-2022:0274 |
| Red Hat Enterprise Linux | RHEL-8 | polkitaarch64 | Advisory build | 0.115-11.el8_2.2 | RHSA-2022:0265 |
| Red Hat Enterprise Linux | RHEL-8 | polkitaarch64 | Advisory build | 0.115-11.el8_4.2 | RHSA-2022:0266 |
| Red Hat Enterprise Linux | RHEL-8 | polkitaarch64 | Advisory build | 0.115-13.el8_5.1 | RHSA-2022:0267 |
| Red Hat Enterprise Linux | RHEL-8 | polkitppc64le | Advisory build | 0.115-11.el8_2.2 | RHSA-2022:0265 |
| Red Hat Enterprise Linux | RHEL-8 | polkitppc64le | Advisory build | 0.115-11.el8_4.2 | RHSA-2022:0266 |
| Red Hat Enterprise Linux | RHEL-8 | polkitppc64le | Advisory build | 0.115-13.el8_5.1 | RHSA-2022:0267 |
| Red Hat Enterprise Linux | RHEL-8 | polkitppc64le | Advisory build | 0.115-9.el8_1.2 | RHSA-2022:0268 |
| Red Hat Enterprise Linux | RHEL-8 | polkits390x | Advisory build | 0.115-11.el8_2.2 | RHSA-2022:0265 |
| Red Hat Enterprise Linux | RHEL-8 | polkits390x | Advisory build | 0.115-11.el8_4.2 | RHSA-2022:0266 |
| Red Hat Enterprise Linux | RHEL-8 | polkits390x | Advisory build | 0.115-13.el8_5.1 | RHSA-2022:0267 |
| Red Hat Enterprise Linux | RHEL-8 | polkitsrc | Advisory build | 0.115-11.el8_2.2 | RHSA-2022:0265 |
| Red Hat Enterprise Linux | RHEL-8 | polkitsrc | Advisory build | 0.115-11.el8_4.2 | RHSA-2022:0266 |
| Red Hat Enterprise Linux | RHEL-8 | polkitsrc | Advisory build | 0.115-13.el8_5.1 | RHSA-2022:0267 |
| Red Hat Enterprise Linux | RHEL-8 | polkitsrc | Advisory build | 0.115-9.el8_1.2 | RHSA-2022:0268 |
| Red Hat Enterprise Linux | RHEL-8 | polkitx86_64 | Advisory build | 0.115-11.el8_2.2 | RHSA-2022:0265 |
| Red Hat Enterprise Linux | RHEL-8 | polkitx86_64 | Advisory build | 0.115-11.el8_4.2 | RHSA-2022:0266 |
| Red Hat Enterprise Linux | RHEL-8 | polkitx86_64 | Advisory build | 0.115-13.el8_5.1 | RHSA-2022:0267 |
| Red Hat Enterprise Linux | RHEL-8 | polkitx86_64 | Advisory build | 0.115-9.el8_1.2 | RHSA-2022:0268 |
| SUSE / openSUSE | SLE-12-SP3 | polkitaarch64 | Advisory build | 0.113-5.24.1 | SUSE-SU-2022:0189-1 |
| SUSE / openSUSE | SLE-12-SP3 | polkitppc64le | Advisory build | 0.113-5.24.1 | SUSE-SU-2022:0189-1 |
| SUSE / openSUSE | SLE-12-SP3 | polkits390x | Advisory build | 0.113-5.24.1 | SUSE-SU-2022:0189-1 |
| SUSE / openSUSE | SLE-12-SP3 | polkitx86_64 | Advisory build | 0.113-5.24.1 | SUSE-SU-2022:0189-1 |
| SUSE / openSUSE | SLE-12-SP4 | polkitaarch64 | Advisory build | 0.113-5.24.1 | SUSE-SU-2022:0189-1 |
| SUSE / openSUSE | SLE-12-SP4 | polkitppc64le | Advisory build | 0.113-5.24.1 | SUSE-SU-2022:0189-1 |
| SUSE / openSUSE | SLE-12-SP4 | polkits390x | Advisory build | 0.113-5.24.1 | SUSE-SU-2022:0189-1 |
| SUSE / openSUSE | SLE-12-SP4 | polkitx86_64 | Advisory build | 0.113-5.24.1 | SUSE-SU-2022:0189-1 |
| SUSE / openSUSE | SLE-12-SP5 | polkitaarch64 | Advisory build | 0.113-5.24.1 | SUSE-SU-2022:0189-1 |
| SUSE / openSUSE | SLE-12-SP5 | polkitppc64le | Advisory build | 0.113-5.24.1 | SUSE-SU-2022:0189-1 |
| SUSE / openSUSE | SLE-12-SP5 | polkits390x | Advisory build | 0.113-5.24.1 | SUSE-SU-2022:0189-1 |
| SUSE / openSUSE | SLE-12-SP5 | polkitx86_64 | Advisory build | 0.113-5.24.1 | SUSE-SU-2022:0189-1 |
| SUSE / openSUSE | SLE-15 | polkitaarch64 | Advisory build | 0.114-3.15.1 | SUSE-SU-2022:0191-1 |
| SUSE / openSUSE | SLE-15 | polkitppc64le | Advisory build | 0.114-3.15.1 | SUSE-SU-2022:0191-1 |
| SUSE / openSUSE | SLE-15 | polkits390x | Advisory build | 0.114-3.15.1 | SUSE-SU-2022:0191-1 |
| SUSE / openSUSE | SLE-15 | polkitx86_64 | Advisory build | 0.114-3.15.1 | SUSE-SU-2022:0191-1 |
| SUSE / openSUSE | SLE-15-SP1 | polkitaarch64 | Advisory build | 0.114-3.15.1 | SUSE-SU-2022:0191-1 |
| SUSE / openSUSE | SLE-15-SP1 | polkitppc64le | Advisory build | 0.114-3.15.1 | SUSE-SU-2022:0191-1 |
| SUSE / openSUSE | SLE-15-SP1 | polkits390x | Advisory build | 0.114-3.15.1 | SUSE-SU-2022:0191-1 |
| SUSE / openSUSE | SLE-15-SP1 | polkitx86_64 | Advisory build | 0.114-3.15.1 | SUSE-SU-2022:0191-1 |
| SUSE / openSUSE | SLE-15-SP2 | polkitaarch64 | Advisory build | 0.116-3.6.1 | SUSE-SU-2022:0190-1 |
| SUSE / openSUSE | SLE-15-SP2 | polkitppc64le | Advisory build | 0.116-3.6.1 | SUSE-SU-2022:0190-1 |
| SUSE / openSUSE | SLE-15-SP2 | polkits390x | Advisory build | 0.116-3.6.1 | SUSE-SU-2022:0190-1 |
| SUSE / openSUSE | SLE-15-SP2 | polkitx86_64 | Advisory build | 0.116-3.6.1 | SUSE-SU-2022:0190-1 |
| SUSE / openSUSE | SLE-15-SP3 | polkitaarch64 | Advisory build | 0.116-3.6.1 | SUSE-SU-2022:0190-1 |
| SUSE / openSUSE | SLE-15-SP3 | polkitppc64le | Advisory build | 0.116-3.6.1 | SUSE-SU-2022:0190-1 |
| SUSE / openSUSE | SLE-15-SP3 | polkits390x | Advisory build | 0.116-3.6.1 | SUSE-SU-2022:0190-1 |
| SUSE / openSUSE | SLE-15-SP3 | polkitx86_64 | Advisory build | 0.116-3.6.1 | SUSE-SU-2022:0190-1 |
| SUSE / openSUSE | SLE-5 | polkitaarch64 | Advisory build | 0.116-3.6.1 | SUSE-SU-2022:0190-1 |
| SUSE / openSUSE | SLE-5 | polkits390x | Advisory build | 0.116-3.6.1 | SUSE-SU-2022:0190-1 |
| SUSE / openSUSE | SLE-5 | polkitx86_64 | Advisory build | 0.116-3.6.1 | SUSE-SU-2022:0190-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | polkitaarch64 | Advisory build | 0.116-3.6.1 | OPENSUSE-SU-2022:0190-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | polkitppc64le | Advisory build | 0.116-3.6.1 | OPENSUSE-SU-2022:0190-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | polkits390x | Advisory build | 0.116-3.6.1 | OPENSUSE-SU-2022:0190-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | polkitx86_64 | Advisory build | 0.116-3.6.1 | OPENSUSE-SU-2022:0190-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | polkitaarch64 | Advisory build | 0.120-2.1 | OPENSUSE-SU-2024:11780-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | polkit | all (affected) | redhat · cna |
Weaknesses
1- CWE-787 (CWE-787|CWE-125)
References
13- http://packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.html
- http://packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html
- https://access.redhat.com/security/vulnerabilities/RHSB-2022-001
- https://bugzilla.redhat.com/show_bug.cgi?id=2025869
- https://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf
- https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-4034
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt
- https://www.secpod.com/blog/local-privilege-escalation-vulnerability-in-major-linux-distributions-cve-2021-4034/
- https://www.starwindsoftware.com/security/sw-20220818-0001/
- https://www.suse.com/support/kb/doc/?id=000020564
- https://www.vicarius.io/vsociety/posts/pwnkit-pkexec-lpe-cve-2021-4034
Provider assertions
3redhat · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- cc4fd5dc6b467e0b26face3341d81a0b961c88c3bb2942f69a051033a77dce15
- Ingested
- 23 Sep 2026, 07:57:18 UTC
- Source record
- Official CVE record