Skip to main content
← All vulnerabilities
CVE-2021-4034

A local privilege escalation vulnerability was found on polkit's pkexec utility.

Published
Last modified
published
Listed in CISA KEV
None on Exploit-DB, Metasploit or GitHub

Summary

The software affected is polkit's pkexec utility, a tool that lets unprivileged users run commands as other users under predefined policies. A flaw in how it handles its argument count can let a local attacker craft environment variables that cause it to run arbitrary code, giving an ordinary user administrative rights on the machine.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original 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.

Timeline

  1. CVE published
  2. Added to CISA KEV

    CISA has evidence of exploitation in the wild

  3. CISA remediation deadline

    Due date for US federal agencies to patch

  4. Record last updated
  5. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • n/a polkit

    all

References 11

access.redhat.com

qualys.com

bugzilla.redhat.com

gitlab.freedesktop.org

oracle.com

packetstormsecurity.com

suse.com

cert-portal.siemens.com

starwindsoftware.com

secpod.com