CVE-2026-65920 Details
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.
A path traversal vulnerability has been identified in Hugging Face Diffusers versions prior to 0.39.0. The issue arises in the '_get_checkpoint_shard_files' function, where the absence of proper validation allows attackers to manipulate 'weight_map' values in the model index JSON. By using '../' sequences or absolute paths, attackers can escape the model directory and access Safetensors files outside the designated location during model loading.
Users are advised to update to Diffusers version 0.39.0 or later, where this vulnerability has been fixed. For those unable to update, a temporary workaround is to manually validate 'weight_map' values, ensuring they do not contain '../' sequences or absolute paths, and that they comply with the expected filename conventions.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 23, 2026CISA-ADP
Assessed Jul 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/huggingface/diffusers/commit/cee298c1f37c439a9a408396b8283a921238a1c6 | [email protected] | Source CodeVendor |
| https://github.com/huggingface/diffusers/issues/14175 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/huggingface/diffusers/pull/14182 | [email protected] | Source CodeVendor |
| https://www.vulncheck.com/advisories/diffusers-path-traversal-via-weight-map-arbitrary-file-read | [email protected] | AdvisoryRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Huggingface Diffusers | <= 0.39.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 23, 2026 | CVE Modified | CISA-ADP |
| Jul 23, 2026 | New CVE Received | [email protected] |
Volerion