LiveActive security incident?Get immediate response
CVE Record

CVE-2021-4034: A local privilege escalation vulnerability was found on polkit's pkexec utility.

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.

HighCVSS 7.8Known exploitedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

CVE-2021-4034 is a local privilege escalation flaw in polkit's pkexec tool. A user who already has basic local access can turn that access into administrative control. Because pkexec is common on Linux systems and CISA lists this CVE as known exploited, it should be treated as a serious fleet-wide remediation item.

Executive priority

Treat this as urgent for Linux fleet hygiene. It requires local access, but it is known exploited and can give attackers administrative control after any foothold. Remediation should be tracked centrally until all affected systems are patched, mitigated, or removed from service.

Technical view

pkexec mishandles the count of calling parameters and can be induced to treat crafted environment variables as commands. Successful exploitation allows arbitrary code execution with elevated privileges. The CVSS 3.1 score is 7.8, with local attack vector, low complexity, low privileges required, and high confidentiality, integrity, and availability impact.

Likely exposure

Exposure is most likely on Linux systems where vulnerable polkit pkexec is installed. The bundle lists polkit as affected and references major vendor advisories, indicating broad distribution impact. Exact affected versions and package names should be confirmed against each operating system vendor's advisory.

Exploitation context

Active exploitation is supported by the CISA Known Exploited Vulnerabilities listing. This is not a remote-entry vulnerability; attackers need local code execution or an account first. It is highly valuable after initial compromise because it can convert limited access into administrative privileges.

Researcher notes

The evidence supports a local privilege escalation in pkexec caused by argument-count handling and environment processing. Public exploit references exist in the bundle, so avoid assuming exploit secrecy. Validation should focus on package state, vendor fixed builds, and post-compromise detection rather than remote network exposure.

Mitigation direction

  • Apply vendor-provided polkit or pkexec security updates across affected systems.
  • Prioritize internet-facing servers, shared Linux hosts, and high-value administrative systems.
  • For unsupported systems, consult vendor guidance before applying temporary workarounds.
  • Track appliance and embedded Linux vendor advisories for inherited polkit exposure.
  • Retire or isolate systems that cannot receive a fixed vendor package.

Validation and detection

  • Inventory systems with polkit and pkexec installed.
  • Verify installed packages match fixed versions from each vendor advisory.
  • Confirm vulnerability scanner coverage includes CVE-2021-4034 checks.
  • Review endpoint telemetry for suspicious local privilege escalation around pkexec.
  • Validate that high-value Linux servers are patched or formally excepted.
Prepared
Confidence
high
Sources
10

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-787: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
description · low confidence lookup

Privilege behavior lookup

The CVE wording references privilege impact, so privilege escalation and authorization behavior review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-4034 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.8 (3.1)
Known Exploited
Yes
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
12Source links

CISA KEV status

Status
Known exploited
Source
CISA / ADP
Date added
Not provided

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.8CVSS 3.1HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H1.85.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.8High
CVSS 3.1 vector shape for CVE-2021-4034Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
n/apolkitallListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-787 · source CWE mapping

Out-of-bounds Write

Out-of-bounds Write represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.