CVE-2025-52565: github.com/opencontainers/runc · runc container escape with malicious config due to /dev/console mount and related races
Affects github.com/opencontainers/runcSource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 8.4 High : upgrade to 1.2.8 soon.
Data as of 13 Nov 2026, 20:09 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 8.4 |
|---|
- Patch
- Available – fixed in 1.2.8, 1.3.3, 1.4.0-rc.3
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:H/SI:H/SA:HExploitation evidence
Disclosed: evidence found.
CVE published 6 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 13 Nov 2026.
What to do
Upgrade github.com/opencontainers/runc to 1.2.8; github.com/opencontainers/runc to 1.3.3; github.com/opencontainers/runc to 1.4.0-rc.3.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/opencontainers/runc | Affected
| Fixed in
|
| Gogithub.com/opencontainers/runc | Affected
| Fixed in
|
| Gogithub.com/opencontainers/runc | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and should be applied by upgrading runc to versions 1.2.8, 1.3.3, or 1.4.0-rc.3 or later. These versions include fixes that properly validate bind-mounts of /dev/pts/$n to /dev/console and address related race conditions and unsafe file operations. No additional mitigation steps are indicated beyond applying the official patches.
Description
CVE-2025-52565 is a high-severity vulnerability in runc (versions >=1.0.0-rc3 <1.2.8, >=1.3.0-rc.1 <1.3.3, and >=1.4.0-rc.1 <1.4.0-rc.3) involving improper bind-mounting of /dev/pts/$n to /dev/console inside containers. This allows an attacker to gain write access to sensitive files like /proc/sysrq-trigger or /proc/sys/kernel/core_pattern, potentially causing denial of service or container breakout. The issue arises because the /dev/console bind-mount occurs before readonly and masked paths are applied. Additional related issues include risky use of os.Create and race conditions in pseudo-terminal handling, which have been addressed in the patches. Fixes are available in runc versions 1.2.8, 1.3.3, and 1.4.0-rc.3.
References
- github.com/opencontainers/runc/security/advisories/GHSA-qw9x-cqr3-wc7r (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2025-52565 (opens in a new tab)
- github.com/opencontainers/runc/commit/01de9d65dc72f67b256ef03f9bfb795a2bf143b4 (opens in a new tab)
- github.com/opencontainers/runc/commit/398955bccb7f20565c224a3064d331c19e422398 (opens in a new tab)
- github.com/opencontainers/runc/commit/531ef794e4ecd628006a865ad334a048ee2b4b2e (opens in a new tab)
- github.com/opencontainers/runc/commit/9be1dbf4ac67d9840a043ebd2df5c68f36705d1d (opens in a new tab)
- github.com/opencontainers/runc/commit/aee7d3fe355dd02939d44155e308ea0052e0d53a (opens in a new tab)
- github.com/opencontainers/runc/commit/db19bbed5348847da433faa9d69e9f90192bfa64 (opens in a new tab)
- github.com/opencontainers/runc/commit/de87203e625cd7a27141fb5f2ad00a320c69c5e8 (opens in a new tab)
- github.com/opencontainers/runc/commit/ff94f9991bd32076c871ef0ad8bc1b763458e480 (opens in a new tab)
- github.com/opencontainers/runc (opens in a new tab)