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

- Severity: High 7.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.27%, higher than 70% of CVEs (2026-12-01)
- Published: 2025-11-05T16:37:15.000Z
- Modified: 2026-10-07T21:10:00.200Z
- Also known as: GHSA-9493-h29p-rfm2, GO-2025-4096
- Related: CVE-2025-52881, CGA-j6fg-v38r-fmwc
- Weaknesses: CWE-61, CWE-363
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- opencontainers runc: < 1.2.8; >= 1.3.0-rc.1, < 1.3.3; >= 1.4.0-rc.1, <= 1.4.0-rc.3
- github.com/opencontainers/runc (Go): before 1.2.8; from 1.3.0-rc.1 before 1.3.3; from 1.4.0-rc.1 before 1.4.0-rc.3
- linuxfoundation runc: before 1.2.8; from 1.3.0 before 1.3.3; 1.4.0

## Every score

- GitHub_M: CVSS:4.0 7.3 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/opencontainers/runc/security/advisories/GHSA-9493-h29p-rfm2> (advisory, mitigation, patch, third-party-advisory, web)
- <https://github.com/opencontainers/runc/commit/1a30a8f3d921acbbb6a4bb7e99da2c05f8d48522> (fix, patch, web)
- <https://github.com/opencontainers/runc/commit/5d7b2424072449872d1cd0c937f2ca25f418eb66> (fix, patch, web)
- <https://github.com/opencontainers/runc/commit/8476df83b534a2522b878c0507b3491def48db9f> (fix, patch, web)
- <https://github.com/opencontainers/runc/commit/db19bbed5348847da433faa9d69e9f90192bfa64> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-31133> (advisory)
- <https://github.com/opencontainers/runc> (package)

## Sources

- CVE List: [CVE-2025-31133](https://www.cve.org/CVERecord?id=CVE-2025-31133), CVE Terms of Use, modified 2025-11-06
- GitHub Advisory Database: [GHSA-9493-h29p-rfm2](https://github.com/advisories/GHSA-9493-h29p-rfm2), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-4096](https://pkg.go.dev/vuln/GO-2025-4096), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-31133](https://nvd.nist.gov/vuln/detail/CVE-2025-31133), Public domain, modified 2026-10-07

---

Page: https://cve.day/CVE-2025-31133 · Whole record: https://cve.day/CVE-2025-31133.json · Rebuilt by cve.day 2026-11-25T22:59:07.305Z
