CVE-2021-4034
Reported by redhat · Published January 28, 2022
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| polkit | polkit_project | 121 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | polkit | all |
| n/a | polkit | * |
| amazon:2 | polkit | 0 |
| amazon:2023 | polkit-docs | 0 |
| alpine | polkit | 0, 0 |
| amazon:2023 | polkit | 0 |
| amazon:2023 | polkit-libs | 0 |
| amazon:2023 | polkit-devel | 0 |
| amazon:2 | polkit-docs | 0 |
| arch | polkit | 0 |
| amazon:2 | polkit-devel | 0 |
Timeline
- Jan 25, 2022 CVE Published
- Jan 25, 2022 VulnCheck XDB Entry (181 in total, the first dated here)
- Jan 26, 2022 PoC Published (18 in total, the first dated here)
- Jan 29, 2022 EPSS Score (30 in total, the first dated here)
- Jun 7, 2022 VulnCheck KEV Exploitation (45 in total, the first dated here)
- Jun 27, 2022 CISA KEV Added
- Jun 1, 2026 Distribution Patch (15 in total, the first dated here)
- Jun 1, 2026 Security Advisory (18 in total, the first dated here)
- Jul 22, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-4034
vulnetix vdb fixes CVE-2021-4034
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-4034/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart