5.3medium
Diffusers Path Traversal via weight_map Arbitrary File Read
- Severity
- 5.3medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.33% (higher than 27% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
Diffusers through 0.39.0, fixed in commit cee298c, contains a path traversal vulnerability in the _get_checkpoint_shard_files function that allows attackers to read arbitrary files by supplying malicious weight_map values in model index JSON. Attackers can use ../ sequences or absolute paths in weight_map entries to escape the model directory and read safetensors files outside the intended location during model loading.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| huggingface diffusers | up to 0.39.0 Not affected: cee298c1f37c439a9a408396b8283a921238a1c6 | CVE List |
All scores
| VulnCheck | 5.3medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N |
| VulnCheck | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
Diffusers through 0.39.0, fixed in commit cee298c, contains a path traversal vulnerability in the _get_checkpoint_shard_files function that allows attackers to read arbitrary files by supplying malicious weight_map values in model index JSON. Attackers can use ../ sequences or absolute paths in weight_map entries to escape the model directory and read safetensors files outside the intended location during model loading.
NVD (es)
Diffusers hasta 0.39.0, corregido en el commit cee298c, contiene una vulnerabilidad de salto de ruta en la función _get_checkpoint_shard_files que permite a los atacantes leer archivos arbitrarios al proporcionar valores maliciosos de weight_map en el JSON del índice del modelo. Los atacantes pueden usar secuencias .. / o rutas absolutas en las entradas de weight_map para escapar del directorio del modelo y leer archivos safetensors fuera de la ubicación prevista durante la carga del modelo.
References
| https://github.com/huggingface/diffusers/issues/14175 | exploit, issue-tracking, technical-description | |
| https://github.com/huggingface/diffusers/pull/14182 | issue-tracking, patch | |
| https://github.com/huggingface/diffusers/commit/cee298c1f37c439a9a408396b8283a921238a1c6 | patch | |
| https://www.vulncheck.com/advisories/diffusers-path-traversal-via-weight-map-arbitrary-file-read | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-65920 changed 2026-07-24 | CVE Terms of Use |
| NVD | CVE-2026-65920 changed 2026-10-24 | Public domain |