CVE-2025-31133
runc container escape via "masked path" abuse due to mount race conditions
Also known as GHSA-9493-h29p-rfm2, GO-2025-4096
Mitigation
- Upgrade github.com/opencontainers/runc to one of 1.2.8, 1.3.3, 1.4.0-rc.3 (or later in the same release line).
Who should check
- Projects that depend on Go package github.com/opencontainers/runc (< 1.2.8)
- Anyone running opencontainers runc < 1.2.8; >= 1.3.0-rc.1, < 1.3.3; >= 1.4.0-rc.1, <= 1.4.0-rc.3
Vulnerability facts
- Affected
- github.com/opencontainers/runc < 1.2.8
- Fixed in
- 1.2.8, 1.3.3, 1.4.0-rc.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.3 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:HOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: Low
- User interaction: Active
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- Confidentiality impact on other systems: High
- Integrity impact on other systems: High
- Availability impact on other systems: High
- EPSS
- 1.27% chance of exploitation in 30 days (percentile 70, 2026-11-26)
- CWE
- CWE-61, CWE-363
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Go github.com/opencontainers/runc | < 1.2.8 | 1.2.8, 1.3.3, 1.4.0-rc.3 | osv |
| opencontainers runc | < 1.2.8; >= 1.3.0-rc.1, < 1.3.3; >= 1.4.0-rc.1, <= 1.4.0-rc.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-31133. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-31133.md Affected: github.com/opencontainers/runc < 1.2.8 Fixed in: 1.2.8, 1.3.3, 1.4.0-rc.3 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.
References
Vendor advisories
Patches
- 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
FAQ
Is CVE-2025-31133 being exploited?
There is no confirmed exploitation: CVE-2025-31133 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.27% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-31133?
High: CVSS 7.3 (v4.0, 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-2025-31133?
github.com/opencontainers/runc < 1.2.8.
Is there a fix for CVE-2025-31133?
Yes. Fixed in 1.2.8, 1.3.3, 1.4.0-rc.3. Upgrade github.com/opencontainers/runc to one of 1.2.8, 1.3.3, 1.4.0-rc.3 (or later in the same release line).
How do I check if I'm affected by CVE-2025-31133?
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.