CVE-2024-21626
runc container breakout through process.cwd trickery and leaked fds
Reported by github_m · Published January 31, 2024
github.com/opencontainers/runc is fixed in 1.1.12 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/opencontainers/runc | Go Modules | 1.1.12 |
| skaffold | Wolfi | 2.11.0-r0 |
| runc | Amazon Linux | 1.1.11-1.amzn2023.0.1 |
| telegraf-1.27 | Chainguard | 1.27.4-r10 |
| newrelic-infrastructure-agent | Wolfi | 1.48.4-r1 |
| kubernetes-fips-1.29 | Chainguard | 1.29.15-r2 |
| trivy | Chainguard | 0.49.0-r0 |
| newrelic-infrastructure-agent | Chainguard | 1.48.4-r1 |
| kubernetes-fips-1.28 | Chainguard | 1.28.9-r0 |
| k3d | Chainguard | 5.6.0-r6 |
| k3s | Wolfi | 1.29.0-r1 |
| zarf | Chainguard | 0.32.3-r0 |
33 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| opencontainers | runc | >=v1.0.0-rc93, < 1.1.12 |
| wolfi | skaffold | 0 |
| Red Hat | Red Hat Enterprise Linux 10 | |
| Red Hat | Red Hat OpenShift Container Platform 4.17 | 4.17.0-202501052337.p0.gbb33e13.assembly.stream.el9 |
| Red Hat | Red Hat OpenShift Virtualization 4 | |
| amazon:2023 | runc | 0 |
| Red Hat | Red Hat Enterprise Linux 7 Extras | 0:1.0.0-70.rc10.el7_9 |
| chainguard | telegraf-1.27 | 0 |
| wolfi | newrelic-infrastructure-agent | 0 |
| Red Hat | OCP-Tools-4.15-RHEL-8 | 0:4.15.1718879538-1.el8 |
| chainguard | kubernetes-fips-1.29 | 0 |
| Red Hat | Red Hat Quay 3 | |
| chainguard | trivy | 0 |
| Red Hat | Red Hat OpenShift Virtualization 4 | |
| Red Hat | Red Hat OpenShift Virtualization 4 | |
| Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | 8040020240207051234.c0c392d5 |
| Red Hat | Red Hat Enterprise Linux 9 | |
| Red Hat | Red Hat OpenShift Virtualization 4 | |
| chainguard | newrelic-infrastructure-agent | 0 |
| Red Hat | Red Hat OpenShift Container Platform 4.16 |
…and 167 more
Timeline
- Jan 31, 2024 CVE Published
- Jan 31, 2024 Metasploit Module
- Feb 1, 2024 VulnCheck XDB Entry (22 in total, the first dated here)
- Feb 5, 2024 PoC Published (3 in total, the first dated here)
- Feb 8, 2024 EPSS Score (30 in total, the first dated here)
- May 7, 2024 VulnCheck KEV Exploitation (3 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (30 in total, the first dated here)
- Dec 5, 2025 CVE Updated
- Jan 18, 2026 Security Advisory (46 in total, the first dated here)
- Aug 21, 2026 Distribution Patch (35 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-21626
vulnetix vdb fixes CVE-2024-21626
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-21626/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/opencontainers/runc/security/advisories/GHSA-xr7r-f8xq-vfvv x_refsource_CONFIRM
- https://github.com/opencontainers/runc/commit/02120488a4c0fc487d1ed2867e901eeed7ce8ecf x_refsource_MISC
- https://github.com/opencontainers/runc/releases/tag/v1.1.12 x_refsource_MISC
- CVE-2024-21626-POC exploit
- CVE-2024-21626-POC exploit
- CVE-2024-21626 exploit
- CVE-2024-21626 exploit
- CVE-2024-21626-demo exploit
- CVE-2024-21626-runcPOC exploit
- CVE-2024-21626 exploit
- CVE-2024-21626 exploit
- CVE-2024-21626 exploit
- cve-2024-21626 exploit
- CVE-2024-21626 exploit
…and 39 more