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 — This contains single-file exploit for cve-2021-4034 which is a Polkit Local Privilege Escalation. Use it wisely! | Kitploit
Tools/GitHubGitHub/z3r0space/cve-2021-4034
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingRed Teaming
GitHubz3r0space/cve-2021-4034

CVE-2021-4034

This contains single-file exploit for cve-2021-4034 which is a Polkit Local Privilege Escalation. Use it wisely!

View Repository
451 year 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

This contains single-file exploit for cve-2021-4034 which is a Polkit Local Privilege Escalation. Use it wisely!

Vulnerability Description

CVE-2021-4034, commonly referred to as Pwnkit, is a memory corruption vulnerability in the pkexec component of Polkit, a toolkit used for defining and handling authorizations in Unix-like systems. The vulnerability stems from improper handling of environment variables, allowing a local user to execute arbitrary code as the root user. The core issue lies in how pkexec fails to properly sanitize environment variables before parsing them. This leads to an out-of-bound write condition in certain scenarios, ultimately allowing for local privilege escalation. It has existed in the codebase since the initial commit of pkexec in 2009, making nearly every major Linux distribution vulnerable until patched in early 2022.

Exploit Steps

  1. sudo apt update
  2. sudo apt install git
  3. git clone https://github.com/Z3R0-0x30/CVE-2021-4034.git
  4. cd CVE-2021-4034
  5. chmod +x Z3R0_polkitLPE.sh
  6. ./Z3R0_polkitLPE.sh
Download Tool