CVE-2024-21626
runc container breakout through process.cwd trickery and leaked fds
Also known as GHSA-xr7r-f8xq-vfvv, GO-2024-2491
Mitigation
- Upgrade github.com/opencontainers/runc to 1.1.12 or later.
Who should check
- Projects that depend on Go package github.com/opencontainers/runc (>= 1.0.0-rc93, < 1.1.12)
- Anyone running opencontainers runc >=v1.0.0-rc93, < 1.1.12
Vulnerability facts
- Affected
- github.com/opencontainers/runc >= 1.0.0-rc93, < 1.1.12
- Fixed in
- 1.1.12
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 8.6 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 11.76% chance of exploitation in 30 days (percentile 97, 2026-11-26)
- CWE
- CWE-403, CWE-668
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/opencontainers/runc | >= 1.0.0-rc93, < 1.1.12 | 1.1.12 | osv |
| opencontainers runc | >=v1.0.0-rc93, < 1.1.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-21626. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-21626.md Affected: github.com/opencontainers/runc >= 1.0.0-rc93, < 1.1.12 Fixed in: 1.1.12 Steps: 1. Search this machine and project for github.com/opencontainers/runc (Go), opencontainers runc: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://github.com/opencontainers/runc/security/advisories/GHSA-xr7r-f8xq-vfvv
- https://access.redhat.com/errata/RHSA-2024:1270
- https://access.redhat.com/errata/RHSA-2024:0717
- https://access.redhat.com/errata/RHSA-2024:4597
- https://access.redhat.com/errata/RHSA-2024:0684
- https://access.redhat.com/errata/RHSA-2025:2441
- https://access.redhat.com/errata/RHSA-2024:0666
- https://access.redhat.com/errata/RHSA-2025:2701
- https://access.redhat.com/errata/RHSA-2024:0662
- https://access.redhat.com/errata/RHSA-2025:2710
- https://access.redhat.com/errata/RHSA-2024:0645
- https://access.redhat.com/errata/RHSA-2025:1711
- https://access.redhat.com/errata/RHSA-2024:10525
- https://access.redhat.com/errata/RHSA-2024:10841
- https://access.redhat.com/errata/RHSA-2024:10149
- https://access.redhat.com/errata/RHSA-2025:0650
- https://access.redhat.com/errata/RHSA-2024:10520
- https://access.redhat.com/errata/RHSA-2025:0115
- https://access.redhat.com/errata/RHSA-2024:0758
- https://access.redhat.com/errata/RHSA-2024:0760
- https://access.redhat.com/errata/RHSA-2024:0757
- https://access.redhat.com/errata/RHSA-2024:0764
- https://access.redhat.com/errata/RHSA-2024:0759
- https://access.redhat.com/errata/RHSA-2024:0748
- https://access.redhat.com/errata/RHSA-2024:0752
- https://access.redhat.com/errata/RHSA-2024:0756
- https://access.redhat.com/errata/RHSA-2024:0755
- https://access.redhat.com/errata/RHSA-2024:0670
- https://nvd.nist.gov/vuln/detail/CVE-2024-21626
Exploits and PoCs
Other
- https://github.com/opencontainers/runc/releases/tag/v1.1.12
- http://www.openwall.com/lists/oss-security/2024/02/01/1
- http://www.openwall.com/lists/oss-security/2024/02/02/3
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SYMO3BANINS6RGFQFKPRG4FIOJ7GWYTL/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2NLXNE23Q5ESQUAI22Z7A63JX2WMPJ2J/
- https://lists.debian.org/debian-lts-announce/2024/02/msg00005.html
- https://www.vicarius.io/vsociety/posts/leaky-vessels-part-1-cve-2024-21626
- https://access.redhat.com/security/cve/CVE-2024-21626
- https://bugzilla.redhat.com/show_bug.cgi?id=2258725
- https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-21626.json
- https://github.com/opencontainers/runc
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2NLXNE23Q5ESQUAI22Z7A63JX2WMPJ2J
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SYMO3BANINS6RGFQFKPRG4FIOJ7GWYTL
FAQ
Is CVE-2024-21626 being exploited?
There is no confirmed exploitation: CVE-2024-21626 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 11.76% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-21626?
High: CVSS 8.6 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2024-21626?
github.com/opencontainers/runc >= 1.0.0-rc93, < 1.1.12.
Is there a fix for CVE-2024-21626?
Yes. Fixed in 1.1.12. Upgrade github.com/opencontainers/runc to 1.1.12 or later.
How do I check if I'm affected by CVE-2024-21626?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.