CVE-2025-62596
JSON

7.3high

youki container escape and denial of service due to arbitrary write gadgets and procfs write redirects

Severity
7.3high CVSS:4.0 by GitHub_M
Exploit likelihood
0.27% (higher than 21% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-vf95-55w6-qmrf

Description

Youki is a container runtime written in Rust. In versions 0.5.6 and below, youki’s apparmor handling performs insufficiently strict write-target validation, and when combined with path substitution during pathname resolution, can allow writes to unintended procfs locations. While resolving a path component-by-component, a shared-mount race can substitute intermediate components and redirect the final target. This issue is fixed in version 0.5.7.

Affected

Product or packageVersionsReported by
youki-dev youki< 0.5.7, before 0.5.7CVE List, NVD
youki (crates.io)before 0.5.7GitHub Advisory Database

All scores

GitHub_M7.3high CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
GitHub10.0high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H
GitHubhigh CVSS:4.0CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
NVD10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:H

Classification

CWE-61CWE-363

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Youki is a container runtime written in Rust. In versions 0.5.6 and below, youki’s apparmor handling performs insufficiently strict write-target validation, and when combined with path substitution during pathname resolution, can allow writes to unintended procfs locations. While resolving a path component-by-component, a shared-mount race can substitute intermediate components and redirect the final target. This issue is fixed in version 0.5.7.

GitHub Advisory Database
Impact

youki’s apparmor handling performs insufficiently strict write-target validation, which—combined with path substitution during pathname resolution—can allow writes to unintended procfs locations.

Weak write-target check youki only verifies that the destination lies somewhere under procfs. As a result, a write intended for /proc/self/attr/apparmor/exec can succeed even if the path has been redirected to /proc/sys/kernel/hostname(which is also in procfs).

Path substitution While resolving a path component-by-component, a shared-mount race can substitute intermediate components and redirect the final target.

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-cgrx-mc8f-2prm

Credits

Thanks to Li Fubang (@lifubang from acmcoder.com, CIIC) and Tõnis Tiigi (@tonistiigi from Docker) for both independently discovering runc's original vulnerability, as well as Aleksa Sarai (@cyphar from SUSE) for the original research into this class of security issues and solutions.

NVD (es)

Youki es un runtime de contenedores escrito en Rust. En las versiones 0.5.6 e inferiores, el manejo de apparmor de Youki realiza una validación de destino de escritura insuficientemente estricta y, cuando se combina con la sustitución de rutas durante la resolución de nombres de ruta, puede permitir escrituras en ubicaciones de procfs no intencionadas. Mientras se resuelve una ruta componente por componente, una condición de carrera de montaje compartido puede sustituir componentes intermedios y redirigir el destino final. Este problema está corregido en la versión 0.5.7.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-62596 changed 2025-11-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-vf95-55w6-qmrf changed 2025-11-15CC-BY-4.0
NVDCVE-2025-62596 changed 2026-10-19Public domain