Skip to content

CVE-2021-4034: PwnKit

Out-of-bounds Write: Is CVE-2021-4034 real, exploitable, or a false positive? Here's the community verdict.

signals

public sources

Exploited in wild
Yes
CISA KEV
Public exploit
Metasploit +2
Metasploit/EDB/PoC
Base severity
7.8 High
CVSS
Exploitation prob.
95%
FIRST EPSS
Weakness
CWE-787 · Out-of-bounds Write
CWE

Confirmed exploited in the wild. Patch this first, regardless of the base score.

public exploits

links to sources — we don’t host code

A working exploit is publicly available from a maintained source. Treat this as higher urgency and verify your exposure.

baseline read

auto · not a community verdict

Real — exploited in the wild

CISA confirms active exploitation. Treat scanner hits as true positives unless your specific version or config is unaffected.

Based on CISA KEV

Confirm or dispute →

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

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.

Published

Embed this verdict
TruePositive verdict for CVE-2021-4034
Markdown
[![TruePositive verdict](https://www.truepositive.app/cve/CVE-2021-4034/badge.svg)](https://www.truepositive.app/cve/CVE-2021-4034)
HTML
<a href="https://www.truepositive.app/cve/CVE-2021-4034"><img src="https://www.truepositive.app/cve/CVE-2021-4034/badge.svg" alt="TruePositive verdict for CVE-2021-4034"></a>

Live badge that updates automatically as the community verdict changes.

Community ground truth

Be the first practitioner to weigh in

So far this is only TruePositive's editorial baseline from public sources. Add your real-world verdict below — it becomes the signal the next person triaging this relies on.

🥇 The first 50 practitioners to contribute earn a Founding Contributor badge.

In your experience, is this finding real and exploitable?

awaiting field verdicts
Real, but not a risk here
Not a real issue

Curated baseline: TruePositive's read from public sources is Real & exploitable — a starting point, not a community verdict.

No account needed. Anonymous verdicts post as an unverified signal. Log in to make yours verified and earn reputation.

Field notes & remediation

Verdicts are the quick signal. Notes are the evidence and fixes behind them.

  • 0
    Field note · TruePositive EditorialCurated

    A flaw in how pkexec (part of polkit) handles its arguments gives a local user a trivial and essentially 100 percent reliable path to root. It was present in default installs for more than 12 years, needs no unusual conditions, and works on the standard configuration, so it is one of the first things an attacker tries after landing on any Linux host.

    Who is affected: almost every Linux distribution with polkit installed, before the January 2022 fix.

    How to check: compare the polkit or policykit package version against your distro's patched build.

    Commonly flagged by: Nessus, Qualys, OpenVAS, Trivy.

  • 0
    Remediation · TruePositive EditorialCurated

    Patch polkit to your distro's fixed version. If you truly cannot patch right away, a documented stopgap is to remove the setuid bit from pkexec with chmod 0755 /usr/bin/pkexec, which breaks pkexec but stops the privilege escalation. Patch properly as soon as you can.

Add a field note or remediationoptional
Note type

What are you adding?

Markdown supported · minimum 20 characters.

Same weakness: CWE-787 · Out-of-bounds Write.