Wavense
VulnerabilitiesVendorsMy Stack
Wavense© 2026 Wavense. All rights reserved.Privacy PolicyTerms & Conditions
Vulnerabilities/CVE-2021-4034
Vulnerability dossier

CVE-2021-4034

Polkit pkexec Local Privilege Escalation Vulnerability

VendorredhatPublishedJan 28, 2022SourceNVDWeaknessCWE-787
Act now

Actively exploited in the wild. Patch or mitigate immediately — don't wait for a maintenance window.

⚙ WeaponizedMetasploit module availableopen ↗PoCPublic exploit on Exploit-DB#50689 ↗
Severity
High · 7.8
CVSS base score
Exploitation
In the wild
CISA KEV · Metasploit · Exploit-DB
Predicted risk
95% model
EPSS forecast — overtaken by confirmed exploitation
Exposure
Local only
Requires local access to the host
01

What's the risk?

An attacker with a basic user account, with local access to the host, with no user interaction, can fully compromise the system — steal data, tamper with it and take it offline.

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.

How it's exploitedMITRE ATT&CK · 1 observed in the wild
Privilege Escalation
T1068
Exploitation for Privilege Escalation
observed

Techniques marked “observed” are corroborated by threat intelligence; the rest are inferred from the weakness type (CWE) and attack vector.

02

Who's exploiting it?

Corroborated threat activity referencing this CVE — with source and confidence, not inference.

Confirmed exploited in the wild. CISA KEV · catalogued Jun 27, 2022
Observed techniques MITRE-analysed · CTID Mappings Explorer
T1068Exploitation for Privilege Escalationobserved

These techniques were analysed against this CVE's real-world exploitation — the matching entries in the ATT&CK chain above are marked “observed”.

03

Are we affected?

50
  • Affectedcanonical · ubuntu_linux16.04
  • Affectedcanonical · ubuntu_linux14.04
  • Affectedcanonical · ubuntu_linux21.10
  • Affectedcanonical · ubuntu_linux20.04
  • Affectedcanonical · ubuntu_linux18.04
  • Affectedoracle · http_server12.2.1.3.0
  • Affectedoracle · http_server12.2.1.4.0
  • Affectedoracle · zfs_storage_appliance_kit8.8
  • Affectedpolkit_project · polkit< 121↑ fixed 121
  • Affectedredhat · enterprise_linux8.0
  • Affectedredhat · enterprise_linux_desktop7.0
  • Affectedredhat · enterprise_linux_eus8.2
  • Affectedredhat · enterprise_linux_for_ibm_z_systems7.0
  • Affectedredhat · enterprise_linux_for_ibm_z_systems8.0
  • Affectedredhat · enterprise_linux_for_ibm_z_systems_eus8.2
  • Affectedredhat · enterprise_linux_for_ibm_z_systems_eus8.4
  • Affectedredhat · enterprise_linux_for_power_big_endian7.0
  • Affectedredhat · enterprise_linux_for_power_little_endian7.0
  • Affectedredhat · enterprise_linux_for_power_little_endian8.0
  • Affectedredhat · enterprise_linux_for_power_little_endian_eus8.1
  • Affectedredhat · enterprise_linux_for_power_little_endian_eus8.2
  • Affectedredhat · enterprise_linux_for_power_little_endian_eus8.4
  • Affectedredhat · enterprise_linux_for_scientific_computing7.0
  • Affectedredhat · enterprise_linux_server7.0
  • Affectedredhat · enterprise_linux_server6.0
  • Affectedredhat · enterprise_linux_server_aus7.3
  • Affectedredhat · enterprise_linux_server_aus7.4
  • Affectedredhat · enterprise_linux_server_aus7.6
  • Affectedredhat · enterprise_linux_server_aus7.7
  • Affectedredhat · enterprise_linux_server_aus8.2
  • Affectedredhat · enterprise_linux_server_aus8.4
  • Affectedredhat · enterprise_linux_server_eus8.4
  • Affectedredhat · enterprise_linux_server_tus8.4
  • Affectedredhat · enterprise_linux_server_tus8.2
  • Affectedredhat · enterprise_linux_server_tus7.7
  • Affectedredhat · enterprise_linux_server_tus7.6
  • Affectedredhat · enterprise_linux_server_update_services_for_sap_solutions7.6
  • Affectedredhat · enterprise_linux_server_update_services_for_sap_solutions8.1
  • Affectedredhat · enterprise_linux_server_update_services_for_sap_solutions8.2
  • Affectedredhat · enterprise_linux_server_update_services_for_sap_solutions8.4
  • Affectedredhat · enterprise_linux_server_update_services_for_sap_solutions7.7
  • Affectedredhat · enterprise_linux_workstation7.0
  • Affectedsuse · enterprise_storage7.0
  • Affectedsuse · linux_enterprise_desktop15
  • Affectedsuse · linux_enterprise_high_performance_computing15.0
  • Affectedsuse · linux_enterprise_server15
  • Affectedsuse · linux_enterprise_server15
  • Affectedsuse · linux_enterprise_workstation_extension12
  • Affectedsuse · manager_proxy4.1
  • Affectedsuse · manager_server4.1
04

What to do

Generated by Wavense from the CVE record — an immediate mitigation and the permanent fix.

  1. !

    Mitigate now

    Until patches are applied, monitor `pkexec` usage for anomalous behavior or execution by non-standard processes or users. Restrict local user access and implement strong endpoint detection and response (EDR) solutions. As a temporary measure, consider removing the setuid bit from `/usr/bin/pkexec`, but test thoroughly as this may break legitimate functionality.

  2. ✓

    Permanent fix

    The permanent fix is to apply vendor-provided patches for polkit. Upgrade the `polkit` package to a version that specifically addresses CVE-2021-4034 (e.g., polkit 0.120 or later). Consult your operating system vendor's security advisories for specific package versions and installation instructions relevant to your distribution.

Technical details— weakness, CVSS vector & calculator, related CVEs

Business impact

An attacker can exploit this vulnerability to execute arbitrary code with root privileges, achieving complete local privilege escalation. This allows unprivileged users to gain administrative control over the system, leading to full system compromise, data exfiltration, or service disruption.

Weakness

2
CWE-787Common Weakness Enumeration · MITRE definitionCWE-125Common Weakness Enumeration · MITRE definition

CVSS 3.1 details

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
0.0
/ 10.0 base
High severity
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Exploitability metrics
Attack VectorAV
Requires local access to the target
Attack ComplexityAC
No special conditions required
Privileges RequiredPR
Basic user privileges
User InteractionUI
No user participation needed
Impact metrics
ScopeS
Impact confined to the vulnerable component
ConfidentialityC
Total loss of confidentiality
IntegrityI
Total loss of integrity
AvailabilityA
Total loss of availability

Related vulnerabilities

Other CVEs affecting ubuntu linux

NVD
10.0Critical
CVE-2026-21962KEVExploit likely

Vulnerability in the Oracle HTTP Server, Oracle Weblogic Server Proxy Plug-in product of Oracle Fusion Middleware (component: Weblogic Server Proxy Plug-in for Apache HTTP Server, Weblogic Server Proxy Plug-in for IIS). Supported versions that are affected are 12.2.1.4.0, 14.1.1.0.0 and 14.1.2.0.0. Easily exploitable vulnerability allows unauthenticated attacker with network access via HTTP to compromise Oracle HTTP Server, Oracle Weblogic Server Proxy Plug-in. While the vulnerability is in Oracle HTTP Server, Oracle Weblogic Server Proxy Plug-in, attacks may significantly impact additional products (scope change). Successful attacks of this vulnerability can result in unauthorized creation, deletion or modification access to critical data or all Oracle HTTP Server, Oracle Weblogic Server Proxy Plug-in accessible data as well as unauthorized access to critical data or complete access to all Oracle HTTP Server, Oracle Weblogic Server Proxy Plug-in accessible data. Note: Affected version for Weblogic Server Proxy Plug-in for IIS is 12.2.1.4.0 only. CVSS 3.1 Base Score 10.0 (Confidentiality and Integrity impacts). CVSS Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N).

oracleCWE-284Improper Access ControlNetworkLow effortNo authNo interactionCIA
2026-01-20
NVD
10.0Critical
CVE-2015-3306KEV⚙ WeaponizedExploit likely

The mod_copy module in ProFTPD 1.3.5 allows remote attackers to read and write to arbitrary files via the site cpfr and site cpto commands.

fedoraprojectCWE-284Improper Access ControlNetworkLow effortNo authNo interactionCIA
2015-05-18
NVD
9.8Critical
CVE-2021-42013KEV⚙ WeaponizedExploit likely

It was found that the fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient. An attacker could use a path traversal attack to map URLs to files outside the directories configured by Alias-like directives. If files outside of these directories are not protected by the usual default configuration "require all denied", these requests can succeed. If CGI scripts are also enabled for these aliased pathes, this could allow for remote code execution. This issue only affects Apache 2.4.49 and Apache 2.4.50 and not earlier versions.

oracleCWE-22Path TraversalNetworkLow effortNo authNo interactionCIA
2021-10-07
NVD
9.8Critical
CVE-2021-41773KEV⚙ WeaponizedExploit likely

A flaw was found in a change made to path normalization in Apache HTTP Server 2.4.49. An attacker could use a path traversal attack to map URLs to files outside the directories configured by Alias-like directives. If files outside of these directories are not protected by the usual default configuration "require all denied", these requests can succeed. If CGI scripts are also enabled for these aliased pathes, this could allow for remote code execution. This issue is known to be exploited in the wild. This issue only affects Apache 2.4.49 and not earlier versions. The fix in Apache HTTP Server 2.4.50 was found to be incomplete, see CVE-2021-42013.

oracleCWE-22Path TraversalNetworkLow effortNo authNo interactionCIA
2021-10-04
NVD
9.8Critical
CVE-2020-11651KEV⚙ WeaponizedExploit likely

An issue was discovered in SaltStack Salt before 2019.2.4 and 3000 before 3000.2. The salt-master process ClearFuncs class does not properly validate method calls. This allows a remote user to access some methods without authentication. These methods can be used to retrieve user tokens from the salt master and/or run arbitrary commands on salt minions.

debianNetworkLow effortNo authNo interactionCIA
2020-04-30
NVD
9.8Critical
CVE-2020-7247KEV⚙ WeaponizedExploit likely

smtp_mailaddr in smtp_session.c in OpenSMTPD 6.6, as used in OpenBSD 6.6 and other products, allows remote attackers to execute arbitrary commands as root via a crafted SMTP session, as demonstrated by shell metacharacters in a MAIL FROM field. This affects the "uncommented" default configuration. The issue exists because of an incorrect return value upon failure of input validation.

debianCWE-78OS Command InjectionNetworkLow effortNo authNo interactionCIA
2020-01-29
NVD
9.8Critical
CVE-2019-5544KEVExploit likely

OpenSLP as used in ESXi and the Horizon DaaS appliances has a heap overwrite issue. VMware has evaluated the severity of this issue to be in the Critical severity range with a maximum CVSSv3 base score of 9.8.

vmwareCWE-787Out-of-bounds WriteNetworkLow effortNo authNo interactionCIA
2019-12-06
NVD
9.8Critical
CVE-2019-16928KEV

Exim 4.92 through 4.92.2 allows remote code execution, a different vulnerability than CVE-2019-15846. There is a heap-based buffer overflow in string_vformat in string.c involving a long EHLO command.

fedoraprojectCWE-787Out-of-bounds WriteNetworkLow effortNo authNo interactionCIA
2019-09-27
0.0
/ 10.0 base
High severity
Key facts
CVE ID
CVE-2021-4034
Published
Jan 28, 2022
Last modified
Aug 15, 2026
CVSS
7.8 (v3.1)
EPSS
94.92%
In CISA KEV
Yes
Confidence
100/100
Weakness
CWE-787
Fixed in
121
Timeline
  1. Jan 28, 2022Published to NVDNVD
  2. Aug 15, 2026Record last modifiedNVD
  3. Aug 22, 2026AI analysis generatedWavense
View on NVD