Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2022-0847-DirtyPipe-Exploits — Exploit collection for Linux Dirty Pipe (CVE-2022-0847) privilege escalation vulnerability, including file overwrite and SUID hijacking payloads with a vulnerability scanner. | Kitploit
Tools/GitHubGitHub/muhammad1596/cve-2022-0847-dirtypipe-exploits
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingLearning & EducationRed Teaming
GitHubmuhammad1596/cve-2022-0847-dirtypipe-exploits

CVE-2022-0847-DirtyPipe-Exploits

Share

Exploit collection for Linux Dirty Pipe (CVE-2022-0847) privilege escalation vulnerability, including file overwrite and SUID hijacking payloads with a vulnerability scanner.

View Repository
1332 years agoNot yet reviewed

Dirty Pipe

CVE-2022-0847-DirtyPipe-Exploits

This repository offers a comprehensive collection of exploits and documentation specifically designed for penetration testers and red team professionals. It serves as a valuable resource for those aiming to exploit the Linux Dirty Pipe vulnerability effectively.

About The Vulnerability

  • Dirty Pipe (CVE-2022-0847) is a local privilege escalation vulnerability discovered in the Linux kernel. This security flaw allows an unprivileged user to perform several critical actions, including:

    • Modifying or overwriting arbitrary read-only files, such as /etc/passwd, which can be leveraged to manipulate user authentication mechanisms.
    • Gaining an elevated shell, thereby obtaining unauthorized administrative privileges on the affected system.

    This vulnerability arises from improper handling of pipe buffer operations within the Linux kernel, enabling an attacker to inject malicious data into sensitive files. Consequently, it poses a significant threat to system integrity and security, necessitating immediate attention and patching.

Affected versions

The vulnerability affects Linux kernel versions newer than 5.8. Patches have been released for the following Linux kernel versions:

  • 5.16.11
  • 5.15.25
  • 5.10.102

For more detailed information about the vulnerability, CVE-2022-0847.

DirtyPipe Vulnerability Scanner

  • To determine if a target system is vulnerable, you can utilize an efficient and reliable Bash script developed by @muhammad1596.
  • For more information and to access the script, visit the DirtyPipe Checker repository on GitHub: DirtyPipe Checker.

Compiling the exploit

  • An automated compiler Bash script is available to streamline the compilation process for both exploits.

  • Prerequisites Ensure you have GCC installed on your system. You can install it using the following command:

sudo apt-get install gcc

Compilation Steps

  1. Make the compile.sh script executable:
chmod +x compile.sh
  1. Run the compile.sh script to compile the exploits:
./compile.sh

Exploit-1 - Modifying/overwriting read only files

  • This repository contains two exploits. The first, 'exploit-1.py', enables the modification or overwriting of arbitrary read-only files.

Running the exploit binary

  • The exploit code is designed to replace the root password with "piped" and creates a backup of the /etc/passwd file in /tmp/passwd.bak. Additionally, the exploit grants an elevated root shell and restores the original passwd file upon completion.
./exploit-1

Exploit-2 - Hijacking SUID binaries

  • This exploit can be used to inject and overwrite data in read-only SUID process memory that run as root.

Finding SUID binaries

find / -perm -4000 2>/dev/null

Running the exploit binary

./exploit-2 /usr/bin/sudo
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    668
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    496
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    394
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    339
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    258
  • 6

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    254

Explore all tools

Browse our collection of tools

View all tools →