Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2021-4034 — Dockerized exploit for Polkit privilege escalation (CVE-2021-4034) that grants root access via pkexec, with a simple script to run and verify. | Kitploit
Tools/GitHubGitHub/kirill89/cve-2021-4034
Privilege EscalationExploit FrameworksVulnerability AnalysisExploitationPenetration Testing
GitHubkirill89/cve-2021-4034

CVE-2021-4034

Dockerized exploit for Polkit privilege escalation (CVE-2021-4034) that grants root access via pkexec, with a simple script to run and verify.

View Repository
6234 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2021-4034

The Polkit Privilege Escalation exploit. Dockerized for the sake of reproducibility.

Run docker

root@kitploit:~
docker build -t cve20214034 .
docker run -it --rm cve20214034

Run the exploit

root@kitploit:~
whoami # user
./gain-root.sh
whoami # root

References

  • The original advisory: https://www.qualys.com/2022/01/25/cve-2021-4034/pwnkit.txt
  • The exploit used for inspiration: https://github.com/berdav/CVE-2021-4034
  • Another exploit used for inspiration:https://github.com/ryaagard/CVE-2021-4034
Download Tool