Описание
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.
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.
Ссылки
- https://nvd.nist.gov/vuln/detail/CVE-2026-65920
- 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
Связанные уязвимости
A flaw was found in Diffusers. This path traversal vulnerability in the `_get_checkpoint_shard_files` function allows a remote attacker to read arbitrary files. By supplying malicious `weight_map` values in model index JSON, an attacker can use `../` sequences or absolute paths to escape the model directory and read sensitive files outside the intended location during model loading. This could lead to information disclosure.
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.