CVE-2025-31133
HIGH 7.3CVSS 4.0runc container escape via "masked path" abuse due to mount race conditions
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.
- Published
- 6 Nov 2025
- Last modified
- 7 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-363CWE-61
- Also known as
- GHSA-9493-h29p-rfm2GO-2025-4096
- Sources
- NVDJSONOSV GHSA-9493-h29p-rfm2JSONOSV GO-2025-4096JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | linuxfoundation | runccpe:2.3:a:linuxfoundation:runc:*:*:*:*:*:*:*:* |
< 1.2.8 | 1.2.8 |
| NVD | linuxfoundation | runccpe:2.3:a:linuxfoundation:runc:*:*:*:*:*:*:*:* |
>= 1.3.0, < 1.3.3 | 1.3.3 |
| NVD | linuxfoundation | runccpe:2.3:a:linuxfoundation:runc:1.4.0:rc1:*:*:*:*:*:* |
= 1.4.0 | |
| NVD | linuxfoundation | runccpe:2.3:a:linuxfoundation:runc:1.4.0:rc2:*:*:*:*:*:* |
= 1.4.0 | |
| OSV | Go | github.com/opencontainers/runc | < 1.2.8 | 1.2.8 |
| OSV | Go | github.com/opencontainers/runc | >= 1.3.0-rc.1, < 1.3.3 | 1.3.3 |
| OSV | Go | github.com/opencontainers/runc | >= 1.4.0-rc.1, < 1.4.0-rc.3 | 1.4.0-rc.3 |
| OSV | Go | github.com/opencontainers/runc | < 1.2.8; >= 1.3.0-rc.1, < 1.3.3; >= 1.4.0-rc.1, < 1.4.0-rc.3 | 1.2.8, 1.3.3, 1.4.0-rc.3 |
References
- https://github.com/opencontainers/runc/commit/1a30a8f3d921acbbb6a4bb7e99da2c05f8d48522 · Patch, WEB, FIX
- https://github.com/opencontainers/runc/commit/5d7b2424072449872d1cd0c937f2ca25f418eb66 · Patch, WEB, FIX
- https://github.com/opencontainers/runc/commit/8476df83b534a2522b878c0507b3491def48db9f · Patch, WEB, FIX
- https://github.com/opencontainers/runc/commit/db19bbed5348847da433faa9d69e9f90192bfa64 · Patch, WEB, FIX
- https://github.com/opencontainers/runc/security/advisories/GHSA-9493-h29p-rfm2 · Mitigation, Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-31133 · ADVISORY
- https://github.com/opencontainers/runc · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 6 Nov 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 18 Nov 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 5 Nov 2025)