CVEfocus › CVE database › CVE-2021-4034

CVE-2021-4034

Known exploited (CISA KEV) · ransomwareCVSS 7.8 HighEPSS 94.9% (in the top 1% of all CVEs)Published 2022-01-28Updated 2026-08-15Assigner: redhat

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.

CWE-787

What to do

This CVE is being exploited in the wild (CISA Known Exploited Vulnerabilities, added 2022-06-27). If you run an affected version, patch or mitigate now.

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

30Fixed
2Fix pending
4Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04policykit-1Fixed0.105-31ubuntu1UBUNTU-CVE-2021-4034
Ubuntu 20.04policykit-1Fixed0.105-26ubuntu1.2UBUNTU-CVE-2021-4034
Ubuntu 18.04policykit-1Fixed0.105-20ubuntu0.18.04.6UBUNTU-CVE-2021-4034
Ubuntu 16.04policykit-1Fix pending0.105-14.1ubuntu0.5+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-4034
Ubuntu 14.04policykit-1Fix pending0.105-4ubuntu3.14.04.6+esm1 (Ubuntu Pro)UBUNTU-CVE-2021-4034
Debian 14policykit-1Fixed0.105-31.1DEBIAN-CVE-2021-4034
Debian 13policykit-1Fixed0.105-31.1DEBIAN-CVE-2021-4034
Debian 12policykit-1Fixed0.105-31.1DEBIAN-CVE-2021-4034
Red Hat Enterprise Linux 9polkitNot affected
Red Hat Enterprise Linux 9polkit-develNot affected
Red Hat Enterprise Linux 9polkit-docsNot affected
Red Hat Enterprise Linux 9polkit-libsNot affected
Red Hat Enterprise Linux 8polkitFixed0:0.115-13.el8_5.1RHSA-2022:0267
Red Hat Enterprise Linux 8polkit-develFixed0:0.115-13.el8_5.1RHSA-2022:0267
Red Hat Enterprise Linux 8polkit-docsFixed0:0.115-13.el8_5.1RHSA-2022:0267
Red Hat Enterprise Linux 8polkit-libsFixed0:0.115-13.el8_5.1RHSA-2022:0267
Red Hat Enterprise Linux 7polkitFixed0:0.112-26.el7_9.1RHSA-2022:0274
Red Hat Enterprise Linux 7polkit-develFixed0:0.112-26.el7_9.1RHSA-2022:0274
Red Hat Enterprise Linux 7polkit-docsFixed0:0.112-26.el7_9.1RHSA-2022:0274
Red Hat Enterprise Linux 7redhat-virtualization-hostFixed0:4.3.21-20220126.0.el7_9RHSA-2022:0443
Red Hat Enterprise Linux 7redhat-virtualization-host-image-updateFixed0:4.3.21-20220126.0.el7_9RHSA-2022:0443
AlmaLinux 8polkitFixed0.115-13.el8_5.2ALSA-2022:0267
AlmaLinux 8polkit-develFixed0.115-13.el8_5.2ALSA-2022:0267
AlmaLinux 8polkit-docsFixed0.115-13.el8_5.2ALSA-2022:0267
AlmaLinux 8polkit-libsFixed0.115-13.el8_5.2ALSA-2022:0267
Rocky Linux 8polkitFixed0:0.115-13.el8_5.1RLSA-2022:0267
Alpine Linux 3.24polkitFixed0.120-r2ALPINE-CVE-2021-4034
Alpine Linux 3.23polkitFixed0.120-r2ALPINE-CVE-2021-4034
Alpine Linux 3.22polkitFixed0.120-r2ALPINE-CVE-2021-4034
Alpine Linux 3.21polkitFixed0.120-r2ALPINE-CVE-2021-4034
Alpine Linux 3.20polkitFixed0.120-r2ALPINE-CVE-2021-4034
Alpine Linux 3.19polkitFixed0.120-r2ALPINE-CVE-2021-4034
Alpine Linux 3.18polkitFixed0.120-r2ALPINE-CVE-2021-4034
Alpine Linux 3.17polkitFixed0.120-r2ALPINE-CVE-2021-4034
Alpine Linux 3.16polkitFixed0.120-r2ALPINE-CVE-2021-4034
Alpine Linux 3.15polkitFixed0.119-r8ALPINE-CVE-2021-4034

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.