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-2022-0847 — my personal exploit of CVE-2022-0847(dirty pipe) | Kitploit
Tools/GitHubGitHub/arttnba3/cve-2022-0847
Privilege EscalationVulnerability AnalysisExploitationPapers & ResearchLearning & EducationBinary Exploitation
GitHubarttnba3/cve-2022-0847

CVE-2022-0847

my personal exploit of CVE-2022-0847(dirty pipe)

View Repository
624 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-2022-0847

my personal poc and exploit of CVE-2022-0847(dirty pipe)

Usage

POC: write files arbitrarily

Just a simply POC of this CVE, compile the file poc.c as follow:

root@kitploit:~
$ gcc poc.c -o poc -static

You shall run it as follow:

root@kitploit:~
./poc target_file offset_in_file data

You shall make sure the destination file is at least readable.

Result tested on Linux kernel 5.13.19:

image.png

EXPLOIT: ROOT PRIVILEGE

I choose to gain a ROT privilege by overwriting SUID application to provide a ROOT SHELL Just compile the file exploit_suid.c and run it as follow:

root@kitploit:~
$ gcc exploit_suid.c -o exp -static
$ ./exp target_file

For test I chose the /bin/passwd as the target SUID file, result tested on Ubuntu 21.10 (kernel 5.13.0) is as follow:

image.png

Analyzation of the CVE-2022-0847

You can visit my blog for more information about this CVE

Download Tool