Red Hat · polkit · CWE-787 · published 2022-01-28
CVE-2021-4034Red Hat Polkit Out-of-Bounds Read and Write Vulnerability
Patch today Known exploited and used in ransomware campaigns.
CVE-2021-4034 is actively exploited in the wild: CISA added it to the Known Exploited Vulnerabilities catalog on 2022-06-27, and it is known to be used in ransomware campaigns. EPSS estimates a 94.9% chance of exploitation in the next 30 days, higher than 99% of all CVEs. This polkit vulnerability: CVSS 7.8 (v3.1), a successful attack gives total control of the component. Patched packages are out for Debian, Ubuntu and Red Hat Enterprise Linux. US federal agencies must remediate by 2022-07-18. Patch today.
Jump to: Remediation Exploit intelAffected versionsDescription
Remediation#
CISA required action: Apply updates per vendor instructions. (federal due date 2022-07-18)
Linux distribution packages
If you run the distro’s package rather than an upstream build, this is the version to look for.
| Distro | Release | Package | Status |
|---|---|---|---|
| Debian | 13 trixie | policykit-1 | Fixed in 0.105-31.1 |
| 12 bookworm | policykit-1 | Fixed in 0.105-31.1 | |
| Ubuntu | 22.04 LTS | policykit-1 | Fixed in 0.105-31ubuntu1 |
| 20.04 LTS | policykit-1 | Fixed in 0.105-26ubuntu1.2 | |
| 18.04 LTS | policykit-1 | Fixed in 0.105-20ubuntu0.18.04.6 | |
| Red Hat Enterprise Linux | RHEL 9 | polkit | Not affected |
| RHEL 8 | polkit | Fixed in 0.115-13.el8_5.1 RHSA-2022:0267 | |
| RHEL 7 | polkit | Fixed in 0.112-26.el7_9.1 RHSA-2022:0274 |
From the Debian Security Tracker, Ubuntu security notices (CC BY-SA 4.0) and Red Hat Security Data (CC BY 4.0). Check the distro link before acting.
Patch events
Operating systempolkit
Out-of-Bounds Read and WriteCVE-2021-4034
Why: Known exploited and used in ransomware campaigns.
Exploit intelligence#
| Signal | Value | Source |
|---|---|---|
| Known exploited | Yes, added 2022-06-27 | CISA KEV |
| Ransomware use | Known | CISA KEV |
| EPSS (30-day exploitation probability) | 95% (100th pct) | FIRST EPSS v2026.06.15 |
| CVSS base score | 7.8 (v3.1)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | CNA / CISA ADP |
| SSVC exploitation | active | CISA Vulnrichment |
| SSVC automatable | No | CISA Vulnrichment |
| SSVC technical impact | total | CISA Vulnrichment |
Weakness: CWE-787: Out-of-bounds Write
More from this vendor: all Red Hat vulnerabilities · recent KEV additions
Affected versions (from the CVE record)#
- polkit
all(affected)
Description (from the CVE record)#
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.
Quoted from the CVE Program record.