Opencontainers runc
runc 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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.2.8
- >= 1.3.0-rc.1, < 1.3.3
- >= 1.4.0-rc.1, <= 1.4.0-rc.3
Fixed in 1.2.8, 1.3.3
Mitigation
Upgrade runc to 1.2.8 or 1.3.3 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 5.6 days after publication; not in CISA KEV. First PoC: skynet-f-nvidia/CVE-2025-31133 (created 12 Nov 2025, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs · 2 informational
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| skynet-f-nvidia/CVE-2025-31133 | 12 Nov 2025 +5.6 d | 2 | PoC |
| C-h4ck-0/Learn-about-cve-2025-31133-poc | 18 Jan 2026 +73 d | 2 | PoC |
Informational 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| raesene/vuln_pocs | 28 Oct 2022 −3.0 y | 5 | Informational · list |
| scherepiuk/container-escape-ebpf | 31 Dec 2025 +54 d | 2 | Informational · detection |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.