CVE-2025-52565: container escape due to /dev/console mount and related races
Vulnerability summary
CVE-2025-52565 is a high (CVSS 8.4) UNIX Symbolic Link (Symlink) Following vulnerability in linuxfoundation runc. EPSS estimates a 0.81% chance of exploitation in the next 30 days, higher than 56.9% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 51 · Related 44Timeline
- 06-11-2025PublishedVulnerability first disclosed.
- 06-11-2025Last modifiedVulnerability information updated.
Description
runc is a CLI tool for spawning and running containers according to the OCI specification. Versions 1.0.0-rc3 through 1.2.7, 1.3.0-rc.1 through 1.3.2, and 1.4.0-rc.1 through 1.4.0-rc.2, due to insufficient checks when bind-mounting `/dev/pts/$n` to `/dev/console` inside the container, an attacker can trick runc into bind-mounting paths which would normally be made read-only or be masked onto a path that the attacker can write to. This attack is very similar in concept and application to CVE-2025-31133, except that it attacks a similar vulnerability in a different target (namely, the bind-mount of `/dev/pts/$n` to `/dev/console` as configured for all containers that allocate a console). This happens after `pivot_root(2)`, so this cannot be used to write to host files directly -- however, as with CVE-2025-31133, this can load to denial of service of the host or a container breakout by providing the attacker with a writable copy of `/proc/sysrq-trigger` or `/proc/sys/kernel/core_pattern` (respectively). This issue is fixed in versions 1.2.8, 1.3.3 and 1.4.0-rc.3.
CVSS metrics
10 scores · 8 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated8.4HighCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H
- OSV · WolfiEcosystem advisory · calculated8.4HighCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H
- OSV · GoEcosystem advisory · calculated7.3HighCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:HDiffers
- OSV · ChainguardEcosystem advisory · calculated8.4HighCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:H/SI:H/SA:H
- NVDNIST8.4HighCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/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 · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
- NVDNIST7.5HighCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
EPSS trend
Probability
0.81%
Chance of exploitation in the next 30 days
Percentile
57%
Versus all other CVEs
30-day change
Increase +0.25 pp
From 0.56% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundRunc
Maturity: poc
Weaknesses
CWE · root cause- CWE-61UNIX Symbolic Link (Symlink) FollowingThe product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.
- CWE-363Race Condition Enabling Link FollowingThe product checks the status of a file or directory before accessing it, which produces a race condition in which the file can be replaced with a link before the access is performed, causing the product to access the wrong file.
Affected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard121 products
- azure-vnet-cni< 1.7.4-r2
- buildah< 1.42.0-r1
- cluster-autoscaler-1.31< 1.31.5-r4 | < 1.31.5-r1
- cluster-autoscaler-fips-1.31< 1.31.5-r1 | < 1.31.5-r5
- ctopAll versions (No fix recorded)
Wolfi21 products
- buildah< 1.42.0-r1
- ctopAll versions (No fix recorded)
- docker-machine-driver-harvesterAll versions (No fix recorded)
- falco-no-driver< 0.43.0-r0
- grafana-alloy< 1.11.3-r1
Ubuntu3 products
- runcAll versions (No fix recorded)
- runc-appAll versions (No fix recorded) | < 1.3.3-0ubuntu1~22.04.2 | < 1.3.3-0ubuntu1~24.04.2 | < 1.3.3-0ubuntu1~25.10.2
- runc-stable< 1.3.3-0ubuntu1~25.10.2
Alpine1 product
- runc≥ 1.0.1, < 1.3.3-r0
Debian1 product
- runcAll versions (No fix recorded) | < 1.3.3+ds1-2
Github.com/opencontainers1 product
- runc≥ 1.0.0-rc3, < 1.2.8 | ≥ 1.3.0-rc.1, < 1.3.3 | ≥ 1.4.0-rc.1, < 1.4.0-rc.3
Linuxfoundation1 product
- runc≥ 1.0.1, < 1.2.8 | ≥ 1.3.0, < 1.3.3 | 1.0.0:rc3 | 1.0.0:rc4 | 1.0.0:rc5 | 1.0.0:rc6 | 1.0.0:rc7 | 1.0.0:rc8 | 1.0.0:rc9 | 1.0.0:rc90 | 1.0.0:rc91 | 1.0.0:rc92 | 1.0.0:rc93 | 1.0.0:rc94 | 1.0.0:rc95 | 1.4.0:rc1 | 1.4.0:rc2
Opencontainers1 product
- runc≥ 1.0.0-rc3, < 1.2.8 | ≥ 1.3.0-rc.1, < 1.3.3 | ≥ 1.4.0-rc.1, < 1.4.0-rc.3
8 vendors · 150 products
References
17 links- github.com/opencontainers/runc/security/advisories/GHSA-qw9x-cqr3-wc7rX Refsource CONFIRMREPORTAdvisoryWEBExploitMitigationPatchThird Party Advisory
- github.com/opencontainers/runc/commit/01de9d65dc72f67b256ef03f9bfb795a2bf143b4X Refsource MISCFIXWEBPatch
- github.com/opencontainers/runc/commit/398955bccb7f20565c224a3064d331c19e422398X Refsource MISCFIXWEBPatch
- github.com/opencontainers/runc/commit/531ef794e4ecd628006a865ad334a048ee2b4b2eX Refsource MISCFIXWEBPatch
- github.com/opencontainers/runc/commit/9be1dbf4ac67d9840a043ebd2df5c68f36705d1dX Refsource MISCFIXWEBPatch
- github.com/opencontainers/runc/commit/aee7d3fe355dd02939d44155e308ea0052e0d53aX Refsource MISCFIXWEBPatch
- github.com/opencontainers/runc/commit/db19bbed5348847da433faa9d69e9f90192bfa64X Refsource MISCFIXWEBPatch
- github.com/opencontainers/runc/commit/de87203e625cd7a27141fb5f2ad00a320c69c5e8X Refsource MISCFIXWEBPatch
- github.com/opencontainers/runc/commit/ff94f9991bd32076c871ef0ad8bc1b763458e480X Refsource MISCFIXWEBPatch