# CVE-2024-21626: runc container breakout through process.cwd trickery and leaked fds

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.6
- **CVSS:** 8.6 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 11.76% (percentile 97, 2026-11-28)
- **CWE:** CWE-403, CWE-668
- **Aliases:** GHSA-xr7r-f8xq-vfvv, GO-2024-2491
- **Published:** 2024-01-31T21:31:14.391Z
- **Modified:** 2026-09-17T12:17:08.273Z

## 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

## 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

- Go `github.com/opencontainers/runc`: affected \>= 1.0.0-rc93, \< 1.1.12; fixed 1.1.12 (osv)
- opencontainers runc: \>=v1.0.0-rc93, \< 1.1.12 (cvelist)

## Mitigation

- Upgrade github.com/opencontainers/runc to 1.1.12 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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-28).

### 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.

## References

- vendor: <https://github.com/opencontainers/runc/security/advisories/GHSA-xr7r-f8xq-vfvv>
- vendor: <https://access.redhat.com/errata/RHSA-2024:1270>
- vendor: <https://access.redhat.com/errata/RHSA-2024:0717>
- vendor: <https://access.redhat.com/errata/RHSA-2024:4597>
- vendor: <https://access.redhat.com/errata/RHSA-2024:0684>
- vendor: <https://access.redhat.com/errata/RHSA-2025:2441>
- vendor: <https://access.redhat.com/errata/RHSA-2024:0666>
- vendor: <https://access.redhat.com/errata/RHSA-2025:2701>
- vendor: <https://access.redhat.com/errata/RHSA-2024:0662>
- vendor: <https://access.redhat.com/errata/RHSA-2025:2710>
- vendor: <https://access.redhat.com/errata/RHSA-2024:0645>
- vendor: <https://access.redhat.com/errata/RHSA-2025:1711>
- vendor: <https://access.redhat.com/errata/RHSA-2024:10525>
- vendor: <https://access.redhat.com/errata/RHSA-2024:10841>
- vendor: <https://access.redhat.com/errata/RHSA-2024:10149>
- vendor: <https://access.redhat.com/errata/RHSA-2025:0650>
- vendor: <https://access.redhat.com/errata/RHSA-2024:10520>
- vendor: <https://access.redhat.com/errata/RHSA-2025:0115>
- vendor: <https://access.redhat.com/errata/RHSA-2024:0758>
- vendor: <https://access.redhat.com/errata/RHSA-2024:0760>
- vendor: <https://access.redhat.com/errata/RHSA-2024:0757>
- vendor: <https://access.redhat.com/errata/RHSA-2024:0764>
- vendor: <https://access.redhat.com/errata/RHSA-2024:0759>
- vendor: <https://access.redhat.com/errata/RHSA-2024:0748>
- vendor: <https://access.redhat.com/errata/RHSA-2024:0752>
- vendor: <https://access.redhat.com/errata/RHSA-2024:0756>
- vendor: <https://access.redhat.com/errata/RHSA-2024:0755>
- vendor: <https://access.redhat.com/errata/RHSA-2024:0670>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-21626>
- patch: <https://github.com/opencontainers/runc/commit/02120488a4c0fc487d1ed2867e901eeed7ce8ecf>
- exploit: <http://packetstormsecurity.com/files/176993/runc-1.1.11-File-Descriptor-Leak-Privilege-Escalation.html>
- other: <https://github.com/opencontainers/runc/releases/tag/v1.1.12>
- other: <http://www.openwall.com/lists/oss-security/2024/02/01/1>
- other: <http://www.openwall.com/lists/oss-security/2024/02/02/3>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SYMO3BANINS6RGFQFKPRG4FIOJ7GWYTL/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2NLXNE23Q5ESQUAI22Z7A63JX2WMPJ2J/>
- other: <https://lists.debian.org/debian-lts-announce/2024/02/msg00005.html>
- other: <https://www.vicarius.io/vsociety/posts/leaky-vessels-part-1-cve-2024-21626>
- other: <https://access.redhat.com/security/cve/CVE-2024-21626>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2258725>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-21626.json>
- other: <https://github.com/opencontainers/runc>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2NLXNE23Q5ESQUAI22Z7A63JX2WMPJ2J>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SYMO3BANINS6RGFQFKPRG4FIOJ7GWYTL>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-21626>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-xr7r-f8xq-vfvv> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-2491> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-21626> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-21626>
