CVE-2025-62161 — Vulnerability in youki — CVE Details
youki container escape via "masked path" abuse due to mount race conditions
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.43%). Schedule for your next planned update.
Does your project use an affected youki version?
Paste your Cargo.lock to check it for CVE-2025-62161 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
youki utilizes bind mounting the container's /dev/null as a file mask. When performing this operation, the initial validation of the source /dev/null was insufficient. Specifically, we initially failed to verify whether /dev/null was genuinely present. However, we did perform validation to ensure that the /dev/null path existed within the container, including checking for symbolic links. Additionally, there was a vulnerability in the timing between validation and the actual mount operation.
As a result, by replacing /dev/null with a symbolic link, we can bind-mount arbitrary files from the host system.
This is a different project, but the core logic is similar to the CVE in runc. Issues were identified in runc, and verification was also conducted in youki to confirm the problems. https://github.com/opencontainers/runc/security/advisories/GHSA-9493-h29p-rfm2
Credits
Thanks to Lei Wang (@ssst0n3 from Huawei) for finding and reporting the original runc's vulnerability (Attack 1), and Li Fubang (@lifubang from acmcoder.com, CIIC) for discovering another attack vector in runc (Attack 2) based on @ssst0n3's initial findings.
Also, @cyphar helped youki in finding the problem.
Advisory Timeline
- First published November 5, 2025 (386 days ago).
- Last revised November 15, 2025 — 9 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p youki --precise 0.5.7
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: crates.io (1).
| Package | Fixed In |
|---|---|
| youki crates.io · Affected: All versions | 0.5.7 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-363
- CWE-61
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/opencontainers/runc/security/advisories/GHSA-9493-h29p-rfm2WEB
- https://github.com/youki-dev/youki/security/advisories/GHSA-4g74-7cff-xcv8WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-62161ADVISORY
- https://github.com/youki-dev/youki/commit/5886c91073b9be748bd8d5aed49c4a820548030aWEB
- https://github.com/youki-dev/youkiPACKAGE
Frequently Asked Questions
- What is CVE-2025-62161?
- youki container escape via "masked path" abuse due to mount race conditions. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 10.0/10).
- How do I check if my project is affected by CVE-2025-62161?
- CVE-2025-62161 affects youki. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-62161 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 29.4% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-83816HIGH
CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE
- CVE-2026-83817HIGH
CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution
- CVE-2025-54867HIGH
Youki: If /proc and /sys in the rootfs are symbolic links, they can potentially be exploited to gain access to the host root filesystem.
- CVE-2025-62596HIGH
youki container escape and denial of service due to arbitrary write gadgets and procfs write redirects