CVE-2026-65920
5.3
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
Summary
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 Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| huggingface | diffusers | 0 <= 0.39.0 | affected |
| huggingface | diffusers | cee298c1f37c439a9a408396b8283a921238a1c6 | unaffected |
Weaknesses
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: poc
- Automatable: no
- Technical Impact: partial
References
- https://github.com/huggingface/diffusers/issues/14175
- https://github.com/huggingface/diffusers/pull/14182
- https://github.com/huggingface/diffusers/commit/cee298c1f37c439a9a408396b8283a921238a1c6
- https://www.vulncheck.com/advisories/diffusers-path-traversal-via-weight-map-arbitrary-file-read
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.