Medium severity · published Jul 23, 2026
CVE-2026-65920
Diffusers Path Traversal via weight_map Arbitrary File Read
4.3
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 34% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DI
diffusers · huggingface
through 0.39.0 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-65920
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-65920
github.com
https://github.com/huggingface/diffusers/commit/cee298c1f37c439a9a408396b8283a921238a1c6
github.com
https://github.com/huggingface/diffusers/issues/14175
github.com
https://github.com/huggingface/diffusers/pull/14182
www.vulncheck.com
https://www.vulncheck.com/advisories/diffusers-path-traversal-via-weight-map-arbitrary-file-read
More from diffusers
8.8
CVE-2026-44827
Diffusers: None.py Trust Remote Code Bypass
8.8
CVE-2026-44513
Diffusers: `trust_remote_code` bypass via `custom_pipeline` and local custom components
7.5
CVE-2026-45804
Diffusers: TOCTOU Trust Remote Code Bypass
