CVE-2026-65920 Diffusers Path Traversal via weight_map Arbitrary File Read
Attackers can read arbitrary files by supplying malicious weight_map values in model index JSON during model loading in Hugging Face Diffusers.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-65920?
CVE-2026-65920 is a medium-severity path traversal vulnerability in huggingface diffusers, published on 23 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-22
Which versions are affected by CVE-2026-65920?
How do I fix CVE-2026-65920?
No fix has been published for CVE-2026-65920 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2026-65920 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-65920 exists.
Sources
Also known as GHSA-9576-hw58-7552.