Skip to content
OpenAdvisories
High · 7.8 Known exploited · Ransomware Public exploit CVE-2021-4034 EUVD-2021-33934GHSA-qgr2-xgqv-24x8

A local privilege escalation vulnerability was found on polkit's pkexec utility. The pkexec application is a setuid tool designed to allow …

Published Jan 28, 2022 · Updated Aug 15, 2026 · Assigned by redhat

Description

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.

Affected products

VendorProductAffectedFixed
— polkit all —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 policykit-1 0.105-31.1 —
Debian 13 policykit-1 0.105-31.1 —
Debian 12 policykit-1 0.105-31.1 —
Debian 11 policykit-1 0.105-31+deb11u1 DSA-5059-1
Debian 10 policykit-1 0.105-25+deb10u1 DSA-5059-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 9 policykit-1 0.105-18+deb9u2 DLA-2899-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS policykit-1 0.105-31ubuntu1 —
Ubuntu 20.04 LTS policykit-1 0.105-26ubuntu1.2 USN-5252-1
Ubuntu 18.04 LTS policykit-1 0.105-20ubuntu0.18.04.6 USN-5252-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS policykit-1 0.105-14.1ubuntu0.5+esm1 USN-5252-2
Ubuntu Pro 14.04 LTS policykit-1 0.105-4ubuntu3.14.04.6+esm1 USN-5252-2
ReleasePackageFixed inAdvisory
RHEL 8 polkit +3 0.115-13.el8_5.1 RHSA-2022:0267
RHEL 7 polkit +2 0.112-26.el7_9.1 RHSA-2022:0274
RHEL 7 redhat-virtualization-host +1 4.3.21-20220126.0.el7_9 RHSA-2022:0443
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhev Hypervisor 4 redhat-virtualization-host +1 4.4.10-202202081536_8.5 RHSA-2022:0540
RHEL 8.4 EUS polkit +3 0.115-11.el8_4.2 RHSA-2022:0266
RHEL 8.2 EUS polkit +3 0.115-11.el8_2.2 RHSA-2022:0265
RHEL 8.1 E4S polkit +3 0.115-9.el8_1.2 RHSA-2022:0268
RHEL 7.7 TUS polkit +2 0.112-22.el7_7.2 RHSA-2022:0273
RHEL 7.7 E4S polkit +2 0.112-22.el7_7.2 RHSA-2022:0273
RHEL 7.7 AUS polkit +2 0.112-22.el7_7.2 RHSA-2022:0273
RHEL 7.6 TUS polkit +2 0.112-18.el7_6.3 RHSA-2022:0271
RHEL 7.6 E4S polkit +2 0.112-18.el7_6.3 RHSA-2022:0271
RHEL 7.6 AUS polkit +2 0.112-18.el7_6.3 RHSA-2022:0271
RHEL 7.4 AUS polkit +2 0.112-12.el7_4.2 RHSA-2022:0272
RHEL 7.3 AUS polkit +2 0.112-12.el7_3.1 RHSA-2022:0270
RHEL 6 ELS polkit +3 0.96-11.el6_10.2 RHSA-2022:0269

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 polkit +3 0.115-13.el8_5.2 ALSA-2022:0267

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 polkit 0.115-13.el8_5.1 RLSA-2022:0267
ReleasePackageFixed inAdvisory
SLES 15 SP3 polkit 0.116-3.6.1 SUSE-SU-2022:0190-1
SLES 15 SP2 polkit 0.116-3.6.1 SUSE-SU-2022:0190-1
SLES 15 SP1 polkit 0.114-3.15.1 SUSE-SU-2022:0191-1
SLES 15 polkit 0.114-3.15.1 SUSE-SU-2022:0191-1
SLES 12 SP5 polkit 0.113-5.24.1 SUSE-SU-2022:0189-1
Show 24 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP4 polkit 0.113-5.24.1 SUSE-SU-2022:0189-1
SLES 12 SP3 polkit 0.113-5.24.1 SUSE-SU-2022:0189-1
SLES 12 SP2 polkit 0.113-5.24.1 SUSE-SU-2022:0189-1
SLES for SAP 15 SP2 polkit 0.116-3.6.1 SUSE-SU-2022:0190-1
SLES for SAP 15 SP1 polkit 0.114-3.15.1 SUSE-SU-2022:0191-1
SLES for SAP 15 polkit 0.114-3.15.1 SUSE-SU-2022:0191-1
SLES for SAP 12 SP5 polkit 0.113-5.24.1 SUSE-SU-2022:0189-1
SLES for SAP 12 SP4 polkit 0.113-5.24.1 SUSE-SU-2022:0189-1
SLES for SAP 12 SP3 polkit 0.113-5.24.1 SUSE-SU-2022:0189-1
SLE Micro 5.1 polkit 0.116-3.6.1 SUSE-SU-2022:0190-1
SLE Micro 5.0 polkit 0.116-3.6.1 SUSE-SU-2022:0190-1
SLE HPC 15 SP2 polkit 0.116-3.6.1 SUSE-SU-2022:0190-1
SLE HPC 15 SP1 polkit 0.114-3.15.1 SUSE-SU-2022:0191-1
SLE HPC 15 polkit 0.114-3.15.1 SUSE-SU-2022:0191-1
SUSE OpenStack Cloud Crowbar 9 polkit 0.113-5.24.1 SUSE-SU-2022:0189-1
SUSE OpenStack Cloud Crowbar 8 polkit 0.113-5.24.1 SUSE-SU-2022:0189-1
SUSE OpenStack Cloud 9 polkit 0.113-5.24.1 SUSE-SU-2022:0189-1
SUSE OpenStack Cloud 8 polkit 0.113-5.24.1 SUSE-SU-2022:0189-1
SUSE Manager Server 4.1 polkit 0.116-3.6.1 SUSE-SU-2022:0190-1
SUSE Manager Retail Branch Server 4.1 polkit 0.116-3.6.1 SUSE-SU-2022:0190-1
SUSE Manager Proxy 4.1 polkit 0.116-3.6.1 SUSE-SU-2022:0190-1
SUSE HPE Helion OpenStack 8 polkit 0.113-5.24.1 SUSE-SU-2022:0189-1
SUSE Enterprise Storage 7 polkit 0.116-3.6.1 SUSE-SU-2022:0190-1
SUSE Enterprise Storage 6 polkit 0.114-3.15.1 SUSE-SU-2022:0191-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed polkit 0.120-2.1 openSUSE-SU-2024:11780-1
openSUSE Leap 15.3 polkit 0.116-3.6.1 openSUSE-SU-2022:0190-1
ReleasePackageFixed inAdvisory
Alpine v3.24 polkit 0.120-r2 —
Alpine v3.23 polkit 0.120-r2 —
Alpine v3.22 polkit 0.120-r2 —
Alpine v3.21 polkit 0.120-r2 —
Alpine v3.20 polkit 0.120-r2 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 polkit 0.120-r2 —
Alpine v3.18 polkit 0.120-r2 —
Alpine v3.17 polkit 0.120-r2 —
Alpine v3.16 polkit 0.120-r2 —
Alpine v3.15 polkit 0.119-r8 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 polkit +3 0.117-10.amzn2023.0.3 ALAS2023-2023-026
Amazon Linux 2 polkit +2 0.112-26.amzn2.1 ALAS2-2022-1745

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) polkit 0.119-2 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 polkit +3 0.115-13.0.1.el8_5.1 ELSA-2022-0267
Oracle Linux 7 polkit +2 0.112-26.0.1.el7_9.1 ELSA-2022-0274

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 1

GitHub 185 repositories · most starred shown

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 37

References