CVE-2025-62161
Rust vulnerability analysis and mitigation

Overview

Youki, a container runtime written in Rust, contains a vulnerability (CVE-2025-62161) in versions 0.5.6 and below where insufficient validation of the source /dev/null allows container escape when utilizing bind mounting the container's /dev/null as a file mask. The vulnerability was discovered in November 2025 and has been fixed in version 0.5.7 (GitHub Advisory, NVD).

Technical details

The vulnerability is a Time-of-Check to Time-of-Use (TOCTOU) race condition in the youki container runtime's handling of 'masked paths'. The issue stems from insufficient initial validation of /dev/null and a timing vulnerability between validation and the actual mount operation. By replacing /dev/null with a symbolic link, an attacker can bind-mount arbitrary files from the host system. The vulnerability has received a CVSS v4.0 base score of 7.3 (High) with vector string CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H, and a CVSS v3.1 base score of 10.0 (Critical) (Miggo, NVD).

Impact

The vulnerability allows attackers to escape container isolation by exploiting the mount race condition, potentially gaining access to arbitrary files from the host system. This poses a significant security risk as it compromises the container's isolation boundaries and could lead to unauthorized access to host system resources (GitHub Advisory).

Mitigation and workarounds

Users should upgrade to Youki version 0.5.7 or later, which includes the fix for this vulnerability. The patch implements secure file descriptor handling and proper validation of /dev/null to prevent the race condition (GitHub Advisory).

Community reactions

The vulnerability was initially discovered in runc by Lei Wang (@ssst0n3) from Huawei, with additional attack vectors found by Li Fubang (@lifubang) from acmcoder.com. The youki team, with assistance from @cyphar, verified and addressed similar issues in their implementation (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22863CRITICAL9.2
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-23519HIGH8.9
  • RustRust
  • yazi
NoYesJan 15, 2026
RUSTSEC-2026-0003HIGH8.9
  • RustRust
  • cmov
NoYesJan 14, 2026
CVE-2026-22864HIGH8.1
  • RustRust
  • deno
NoYesJan 15, 2026
CVE-2026-22782LOW2.9
  • RustRust
  • rustfs
NoYesJan 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management