CVE-2026-65920
JSON

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 packageVersionsReported by
huggingface diffusersup to 0.39.0
Not affected: cee298c1f37c439a9a408396b8283a921238a1c6
CVE List

All scores

VulnCheck5.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
VulnCheck4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N

Classification

CWE-22

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

Sources

SourceRecordLicence
CVE ListCVE-2026-65920 changed 2026-07-24CVE Terms of Use
NVDCVE-2026-65920 changed 2026-10-24Public domain