CVE-2024-21626

HIGH EXPLOITED

runc (docker) File Descriptor Leak Privilege Escalation

Title source: metasploit

Description

runc is a CLI tool for spawning and running containers on Linux according to the OCI specification. In runc 1.1.11 and earlier, due to an internal file descriptor leak, an attacker could cause a newly-spawned container process (from runc exec) to have a working directory in the host filesystem namespace, allowing for a container escape by giving access to the host filesystem ("attack 2"). The same attack could be used by a malicious image to allow a container process to gain access to the host filesystem through runc run ("attack 1"). Variants of attacks 1 and 2 could be also be used to overwrite semi-arbitrary host binaries, allowing for complete container escapes ("attack 3a" and "attack 3b"). runc 1.1.12 includes patches for this issue.

Exploits (19)

nomisec WORKING POC 76 stars
by NitroCao · local
https://github.com/NitroCao/CVE-2024-21626
nomisec WORKING POC 14 stars
by Wall1e · local
https://github.com/Wall1e/CVE-2024-21626-POC
nomisec WORKING POC 6 stars
by V0WKeep3r · local
https://github.com/V0WKeep3r/CVE-2024-21626-runcPOC
nomisec WORKING POC 5 stars
by cdxiaodong · local
https://github.com/cdxiaodong/CVE-2024-21626
nomisec WRITEUP 4 stars
by zhangguanzhang · local
https://github.com/zhangguanzhang/CVE-2024-21626
nomisec WORKING POC 3 stars
by laysakura · local
https://github.com/laysakura/CVE-2024-21626-demo
nomisec WORKING POC 2 stars
by KubernetesBachelor · local
https://github.com/KubernetesBachelor/CVE-2024-21626
nomisec WORKING POC 2 stars
by Sk3pper · local
https://github.com/Sk3pper/CVE-2024-21626
nomisec WORKING POC 2 stars
by dorser · poc
https://github.com/dorser/cve-2024-21626
nomisec WORKING POC 1 stars
by FlojBoj · poc
https://github.com/FlojBoj/CVE-2024-21626
nomisec WORKING POC 1 stars
by zpxlz · local
https://github.com/zpxlz/CVE-2024-21626-POC
nomisec WRITEUP
by strikoder · poc
https://github.com/strikoder/cve-2024-21626-runc-1.1.11-escape
nomisec WORKING POC
by scherepiuk · local
https://github.com/scherepiuk/container-escape-ebpf
nomisec WORKING POC
by R4mbb · local
https://github.com/R4mbb/CVE-2024-21626-PoC
nomisec STUB
by adaammmeeee · local
https://github.com/adaammmeeee/little-joke
nomisec WORKING POC
by Sk3pper · local
https://github.com/Sk3pper/CVE-2024-21626-old-docker-versions
nomisec WORKING POC
by abian2 · poc
https://github.com/abian2/CVE-2024-21626
nomisec WORKING POC
by skysbsb · poc
https://github.com/skysbsb/CVE-2024-21626-POC
metasploit WORKING POC EXCELLENT
by h00die, SickMcNugget, jheysel-r7, Rory McNamara · rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/runc_cwd_priv_esc.rb

Scores

CVSS v3 8.6
EPSS 0.0346
EPSS Percentile 87.6%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Details

VulnCheck KEV 2024-05-07
CWE
CWE-403 CWE-668
Status published
Products (3)
fedoraproject/fedora 39
linuxfoundation/runc < 1.1.12
opencontainers/runc 1.0.0-rc93 - 1.1.12Go
Published Jan 31, 2024
Tracked Since Feb 18, 2026