Patchfirst
CVE-2024-21626 Public exploit High · 8.6 EPSS 18.9%

runc container breakout through process.cwd trickery and leaked fds

opencontainers · runc

Summary

The flaw is an internal file descriptor leak in runc, the Linux CLI tool for spawning and running OCI containers, affecting version 1.1.11 and earlier. An attacker who can get a container process started with the leaked descriptor (via runc exec, or through a malicious image run with runc run) can obtain a working directory in the host filesystem namespace, allowing a container escape and access to the host filesystem, with variants able to overwrite host binaries for a complete escape; exploitation requires local access and some user interaction, and the fix is in runc 1.1.12.

Official description · CVE.org

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.

Breakdown
67.2 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 3 months after disclosure. Public exploit code (Metasploit) was available the same day.

  1. DisclosedPublic exploit codeMetasploitday 0
  2. First seen exploitedVulnCheck KEV evidence+3 mo

See the family tree

19 related vulnerabilities in the same code over 9 years. The latest fix listed for github.com/opencontainers/runc is 1.4.0-rc.3.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. CVE-2016-9962RunC allowed additional container processes via 'runc exec' to…31 Jan 2017
  2. relatedMedium

    Why these are linked:

    CVE-2021-43784Overflow in netlink bytemsg length field allows attacker to…6 Dec 2021
  3. relatedMedium

    Why these are linked:

    This CVECVE-2024-21626runc container breakout through process.cwd trickery and leaked…31 Jan 2024
  4. relatedMedium

    Why these are linked:

    CVE-2025-52881runc: LSM labels can be bypassed with malicious config using…6 Nov 2025

15 more CVEs are in this family. See the family tree

Fixes in github.com/opencontainers/runcGo package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 1.1.5CVE-2023-275613 Mar 2023
  2. 1.1.5CVE-2023-2580929 Mar 2023
  3. 1.1.5CVE-2023-2864229 Mar 2023
  4. 1.1.12CVE-2024-2162631 Jan 2024
  5. 1.2.0-rc.3CVE-2024-453103 Sep 2024
  6. 1.4.0-rc.3CVE-2025-311336 Nov 2025
  7. 1.4.0-rc.3CVE-2025-525656 Nov 2025Latest listed

techniques

No techniques linked

No ATT&CK techniques are linked to this CVE yet. MITRE CTID has not mapped it, and no report passage in the corpus ties it to a technique.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: github.com/opencontainers/runc.

Gogithub.com/opencontainers/runcGHSA-xr7r-f8xq-vfvvGO-2024-2491

Upgrade to 1.1.12 or later

Gogo get github.com/opencontainers/runc@v1.1.12

The first fix for CVE-2024-21626. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
1.0.0-rc93 up to 1.1.121.1.12

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

References

40 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close