VDB

CVE-2021-4034

CVE-2021-4034 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
polkitpolkit_project121

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
n/apolkitall
n/apolkit*
amazon:2polkit0
amazon:2023polkit-docs0
alpinepolkit0, 0
amazon:2023polkit0
amazon:2023polkit-libs0
amazon:2023polkit-devel0
amazon:2polkit-docs0
archpolkit0
amazon:2polkit-devel0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›