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
Dirty-Pipe — exp of CVE-2022-0847 | Kitploit
Tools/GitHubGitHub/rabomen/dirty-pipe
Privilege EscalationVulnerability AnalysisExploitationShellcodePayload DevelopmentBinary Exploitation
GitHubrabomen/dirty-pipe

Dirty-Pipe

exp of CVE-2022-0847

View Repository
2314 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 (Dirty Pipe) Exploit

Affected versions >=5.8, <5.16.11, 5.15.25 and 5.10.102

exp.c

Use this vulnerability to overwrite read-only files

1

exp-root-shell.c

Generate shellcode that executes /bin/sh to overwrite a SUID program owned by root, using passwd as an example. Then run the overwritten program to obtain a shell, achieving privilege escalation.

(Although the first byte of the file cannot be modified, as long as the overwritten file and the generated shellcode are both in ELF format, the first byte will necessarily be 0x7f, so there is no need to worry about this issue.)

2

Download Tool