# berdav/CVE-2021-4034

CVE-2021-4034 1day

Repository: https://github.com/berdav/CVE-2021-4034
Canonical: https://ross.abutalabs.com/products/cve-2021-4034
Language: C
License: MIT
License Family: permissive
Last push: 2022-06-08T04:00:28+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 1681, "days_push": 1547, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2048, forks 507 (observed 2026-08-28T04:06:09.010291+00:00)

## What it is
A proof-of-concept exploit and vulnerability checker for CVE-2021-4034 (PwnKit), a polkit pkexec local privilege escalation vulnerability in Linux. It compiles a small C program that spawns a root shell on vulnerable systems and includes a dry-run mode to test for the vulnerability without exploitation.

## Use cases
- check if my linux system is vulnerable to pwnkit
- test for CVE-2021-4034 pkexec privilege escalation
- get a root shell on a vulnerable polkit system
- verify polkit patch was applied correctly
- demonstrate local privilege escalation in a security assessment

## When to choose
- you need to verify whether a Linux host is still vulnerable to PwnKit
- you want a simple, self-contained C exploit PoC for CVE-2021-4034
- you need a dry-run check that confirms vulnerability without spawning a shell

## When to avoid
- your polkit is already patched and you just need routine hardening tools
- you need a general privilege-escalation scanner rather than a single-CVE PoC
- you are on a non-Linux system or one without pkexec installed

## Facets
- artifact type: cli-tool
- maturity: stable
- function: security, penetration-testing, cli
- domain: security, operating-systems, penetration-testing
- platform: cli
- tags: cve-2021-4034, pwnkit, privilege-escalation, exploit, polkit, pkexec, proof-of-concept, vulnerability-detection, linux

## Member repositories
- berdav/CVE-2021-4034 (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:09.010291+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:57:41.534237+00:00, confidence not recorded.
  - readme: https://github.com/berdav/CVE-2021-4034 (fetched 2026-08-28T04:06:09.010291+00:00, sha c5766718b0da)
- Data as of 2026-08-30T08:39:29.467469+00:00.
