CVE-2024-21626
runc container breakout through process.cwd trickery and leaked fds
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.
- Affected
- opencontainers · runc
- CVSS v3.1 NVD
- 8.6 HIGH
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H - EPSS
- 18.92% chance of exploitation in the next 30 days, 97th percentile
- Published
- 2024-01-31
- Updated
- 2026-09-17
Proof-of-concept exploits (20)
- http://packetstormsecurity.com/files/176993/runc-1.1.11-File-Descriptor-Leak-Privilege-Es…
- FlojBoj/CVE-2024-216261★ · 2024-09-02
- KubernetesBachelor/CVE-2024-216262★ · 2025-05-27
- NitroCao/CVE-2024-2162680★ · 2024-02-06
- R4mbb/CVE-2024-216260★ · 2025-09-09
- R4mbb/CVE-2024-21626-PoC0★ · 2025-09-09
- Sk3pper/CVE-2024-216262★ · 2024-11-10
- Sk3pper/CVE-2024-21626-old-docker-versions0★ · 2024-11-08
- V0WKeep3r/CVE-2024-21626-runcPOC6★ · 2024-02-05
- abian2/CVE-2024-216260★ · 2024-06-03
- cdxiaodong/CVE-2024-216265★ · 2024-02-02
- dorser/cve-2024-216262★ · 2024-04-16
- laysakura/CVE-2024-21626-demo3★ · 2024-02-02
- zhangguanzhang/CVE-2024-216264★ · 2024-02-02
- zpxlz/CVE-2024-21626-POC1★ · 2024-02-01
- Strikoder-Premium/cve-2024-21626-runc-1.1.11-escape1★ · 2026-02-28
- skysbsb/CVE-2024-21626-POC0★ · 2024-02-02
- southsidesamurai65-prog/container_all_in_one0★ · 2026-08-08
- RnW29/cve-2024-21626-runc-lab/blob/d33f0f7f8fe95bd6f54784d8db1cfd049a175a70/container/att…0★ · 2026-09-29
- ghs053020-stack/cve-2024-216260★ · 2026-10-12
Metasploit modules (1)
Security advisories
- opencontainers/runc/security/advisories/GHSA-xr7r-f8xq-vfvv
- advisories/GHSA-xr7r-f8xq-vfvv
- opencontainers/runc/commit/02120488a4c0fc487d1ed2867e901eeed7ce8ecf