Skip to main content
← All vulnerabilities
CVE-2024-21626GO-2024-2491GHSA-XR7R-F8XQ-VFVV

runc container breakout through process.cwd trickery and leaked fds

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.1.12
1 Metasploit module, 20 proofs of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • opencontainers runc

    From v1.0.0-rc93 · fixed in 1.1.12

  • github.com/opencontainers/runcGo

    From 1.0.0-rc93 · fixed in 1.1.12

References 30

GitHub · opencontainers/runc

openwall.com

packetstormsecurity.com

lists.fedoraproject.org

lists.debian.org

GitHub · rapid7/metasploit-framework

GitHub · FlojBoj/CVE-2024-21626

GitHub · KubernetesBachelor/CVE-2024-21626

GitHub · MutagomaRaissa/container-security-lab-cve-2024-21626

GitHub · NitroCao/CVE-2024-21626

GitHub · R4mbb/CVE-2024-21626-PoC

GitHub · RnW29/cve-2024-21626-runc-lab

GitHub · Sk3pper/CVE-2024-21626

GitHub · Sk3pper/CVE-2024-21626-old-docker-versions

GitHub · Strikoder-Premium/cve-2024-21626-runc-1.1.11-escape

GitHub · V0WKeep3r/CVE-2024-21626-runcPOC

GitHub · abian2/CVE-2024-21626

GitHub · adaammmeeee/little-joke

GitHub · cdxiaodong/CVE-2024-21626

GitHub · dorser/cve-2024-21626

GitHub · ghs053020-stack/cve-2024-21626

GitHub · laysakura/CVE-2024-21626-demo

GitHub · scherepiuk/container-escape-ebpf

GitHub · skysbsb/CVE-2024-21626-POC

GitHub · zhangguanzhang/CVE-2024-21626

GitHub · zpxlz/CVE-2024-21626-POC