Skip to content
OpenAdvisories
Medium · 4.3 CVE-2026-65920 EUVD-2026-48343GHSA-9576-hw58-7552

Diffusers Path Traversal via weight_map Arbitrary File Read

Published Jul 23, 2026 · Updated Jul 24, 2026 · 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 products

VendorProductAffectedFixed
huggingface diffusers ≤ 0.39.0 —

References