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_POC — Proof Of Concept for the 2021's pkexec vulnerability CVE-2021-4034 | Kitploit
Tools/GitHubGitHub/fnknda/cve-2021-4034_poc
Privilege EscalationExploit FrameworksVulnerability AnalysisExploitationBinary Exploitation
GitHubfnknda/cve-2021-4034_poc

CVE-2021-4034_POC

Proof Of Concept for the 2021's pkexec vulnerability CVE-2021-4034

View Repository
124 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 - Proof Of Concept

This POC exploits GLib's g_printerr to leverage code execution through the injection of the GCONV_PATH environmental variable.

Running the exploit

Make a tarball file of the exploit:

root@kitploit:~
make tar

Then somehow transfer the generated tar to the target machine, compile, and run the vulnerability:

root@kitploit:~
make
./poc

The exploit will try to execute a /bin/sh as root.

Further reading

  • The blog post this exploit was based on
  • An article to better understand the theory behind the attack
Download Tool