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.
Security readout for executives and security teams
Plain-English summary
CVE-2021-4034, known as PwnKit, lets a local unprivileged user gain administrative privileges through polkit’s pkexec utility. It is not a remote entry point by itself, but it can turn a foothold into full system control. CISA lists it as known exploited, so unpatched Linux systems should be treated as urgent.
Executive priority
Prioritize remediation within the KEV-driven emergency patch process. This issue helps attackers escalate privileges after initial access, increasing ransomware and data theft impact. It is broadly relevant across Linux estates but requires local execution.
Technical view
pkexec is a setuid component in polkit. The flaw involves incorrect handling of argument count, allowing crafted environment variables to influence execution and trigger arbitrary code as root. The CVSS 3.1 score is 7.8, local attack vector, low complexity, privileges required, no user interaction, with high confidentiality, integrity, and availability impact.
Likely exposure
Exposure is likely on Linux systems with vulnerable polkit/pkexec installed. The source bundle states affected product as polkit with versions listed as all, but actual package status depends on distribution backports and vendor advisories.
Exploitation context
Active exploitation is supported by CISA KEV listing. The vulnerability requires local access or an existing low-privileged account, making it especially relevant after phishing, stolen credentials, web-shell compromise, or container/host misconfiguration.
Researcher notes
Use vendor advisories to determine fixed package versions because distributions may backport patches without changing upstream version numbers. Avoid relying only on upstream version strings. Public research confirms broad impact and details root-cause behavior; do not run proof-of-concept tests on production systems.
Mitigation direction
Apply vendor-provided polkit or pkexec security updates for each Linux distribution.
Prioritize internet-facing servers and systems with many local users.
If patching is delayed, check vendor guidance for supported temporary mitigations.
Review appliance and embedded vendor advisories where Linux components are bundled.
Validation and detection
Inventory systems with polkit or pkexec installed.
Confirm installed package versions against distribution security advisories.
Check whether vendor fixes or backported patches are applied.
Review EDR and authentication logs for suspicious local privilege escalation activity.
Track CISA KEV remediation expectations for enterprise prioritization.
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.
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.
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.
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.
Exploitation: activeAutomatable: noTechnical Impact: total
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.
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.