# CVE-2021-4034: Red Hat Polkit Out-of-Bounds Read and Write Vulnerability

- Priority: **Act now**
- Reason: Known ransomware use (CISA, 27-06-2022)
- Next step: Check the vendor advisory
- Status: published
- Published: 2022-01-28 · Modified: 2026-08-15
- Aliases: MGASA-2022-0037, SUSE-SU-2022:0189-1, SUSE-SU-2022:0190-1, SUSE-SU-2022:0191-1, RHSA-2022:0265, RHSA-2022:0266, RHSA-2022:0267, RHSA-2022:0268, RHSA-2022:0269, RHSA-2022:0270, RHSA-2022:0271, RHSA-2022:0272, RHSA-2022:0273, RHSA-2022:0274, UBUNTU-CVE-2021-4034, USN-5252-1, USN-5252-2, DEBIAN-CVE-2021-4034, DLA-2899-1, DSA-5059-1, openSUSE-SU-2022:0190-1, openSUSE-SU-2024:11780-1, ALPINE-CVE-2021-4034
- Record: https://cvemate.com/vulnerability/CVE-2021-4034 · JSON: https://cvemate.com/vulnerability/CVE-2021-4034/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 94.921%, percentile 99.86%, as of 2026-12-04
- Known exploited (KEV): CISA listed 2022-06-27, ENISA listed 2026-11-23, CIRCL not listed
- Ransomware use: known
- Public exploits: 6 (reference, exploit-database, metasploit)

## Affected (first 20 of 81)

- alpine polkit (Alpine Linux): \< 0.119-r8 \| \< 0.120-r2
- canonical ubuntu\_linux: 14.04 \| 16.04 \| 18.04 \| 20.04 \| 21.10
- debian policykit-1 (Debian): \< 0.105-31.1 \| \< 0.105-18+deb9u2 \| \< 0.105-25+deb10u1 \| \< 0.105-31+deb11u1
- ubuntu policykit-1 (Ubuntu): \< 0.105-4ubuntu3.14.04.6+esm1 \| \< 0.105-14.1ubuntu0.5+esm1 \| \< 0.105-20ubuntu0.18.04.6 \| \< 0.105-26ubuntu1.2 \| \< 0.105-31ubuntu1
- mageia polkit (Mageia): \< 0.118-1.2.mga8
- 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: 8.0
- redhat enterprise\_linux\_desktop: 7.0
- redhat enterprise\_linux\_eus: 8.2
- redhat enterprise\_linux\_for\_ibm\_z\_systems: 7.0 \| 8.0
- redhat enterprise\_linux\_for\_ibm\_z\_systems\_eus: 8.2 \| 8.4
- redhat enterprise\_linux\_for\_power\_big\_endian: 7.0
- 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\_for\_scientific\_computing: 7.0
- redhat enterprise\_linux\_server: 6.0 \| 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

## References (first 20 of 51)

- <https://access.redhat.com/security/vulnerabilities/RHSB-2022-001>
- <https://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2025869>
- <https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683>
- <https://www.oracle.com/security-alerts/cpuapr2022.html>
- <http://packetstormsecurity.com/files/166196/Polkit-pkexec-Local-Privilege-Escalation.html>
- <http://packetstormsecurity.com/files/166200/Polkit-pkexec-Privilege-Escalation.html>
- <https://www.suse.com/support/kb/doc/?id=000020564>
- <https://cert-portal.siemens.com/productcert/pdf/ssa-330556.pdf>
- <https://www.starwindsoftware.com/security/sw-20220818-0001/>
- <https://www.secpod.com/blog/local-privilege-escalation-vulnerability-in-major-linux-distributions-cve-2021-4034/>
- <https://www.vicarius.io/vsociety/posts/pwnkit-pkexec-lpe-cve-2021-4034>
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-4034>
- <https://advisories.mageia.org/MGASA-2022-0037.html>
- <https://bugs.mageia.org/show_bug.cgi?id=29944>
- <https://access.redhat.com/errata/RHSA-2022:0267>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20220189-1/>
- <https://bugzilla.suse.com/1194568>
- <https://www.suse.com/security/cve/CVE-2021-4034>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20220190-1/>

---

Data as of 2026-12-05T02:35:49.902Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
