CVE-2026-65920: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in huggingface diffusers
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.
AI Analysis
Technical Summary
CVE-2026-65920 is a path traversal vulnerability in the huggingface diffusers library up to version 0.39.0. The vulnerability resides in the _get_checkpoint_shard_files function, where attackers can supply malicious weight_map entries in the model index JSON. These entries can include ../ sequences or absolute paths, allowing traversal outside the intended directory and reading of arbitrary safetensors files during model loading. This could lead to unauthorized disclosure of files accessible to the application. The vulnerability is fixed in a commit identified as cee298c.
Potential Impact
An attacker can read arbitrary files on the system accessible to the application by exploiting the path traversal vulnerability in the diffusers library. This may lead to unauthorized disclosure of sensitive information contained in files outside the intended model directory. There is no indication of privilege escalation, code execution, or other impacts beyond information disclosure. The CVSS 4.0 base score is 5.3, indicating a medium severity vulnerability with network attack vector, low complexity, no privileges required, and user interaction needed.
Mitigation Recommendations
A fix for this vulnerability is available in the huggingface diffusers project, implemented in commit cee298c. Users should upgrade to a version that includes this commit or apply the patch directly to remediate the issue. No vendor advisory content is provided to confirm the exact fixed version number, so users should consult the official huggingface diffusers repository for the patched release. Until patched, avoid loading untrusted model index JSON files that could contain malicious weight_map entries.
CVE-2026-65920: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in huggingface diffusers
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.
CVSS v4.0
Score 5.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-65920 is a path traversal vulnerability in the huggingface diffusers library up to version 0.39.0. The vulnerability resides in the _get_checkpoint_shard_files function, where attackers can supply malicious weight_map entries in the model index JSON. These entries can include ../ sequences or absolute paths, allowing traversal outside the intended directory and reading of arbitrary safetensors files during model loading. This could lead to unauthorized disclosure of files accessible to the application. The vulnerability is fixed in a commit identified as cee298c.
Potential Impact
An attacker can read arbitrary files on the system accessible to the application by exploiting the path traversal vulnerability in the diffusers library. This may lead to unauthorized disclosure of sensitive information contained in files outside the intended model directory. There is no indication of privilege escalation, code execution, or other impacts beyond information disclosure. The CVSS 4.0 base score is 5.3, indicating a medium severity vulnerability with network attack vector, low complexity, no privileges required, and user interaction needed.
Mitigation Recommendations
A fix for this vulnerability is available in the huggingface diffusers project, implemented in commit cee298c. Users should upgrade to a version that includes this commit or apply the patch directly to remediate the issue. No vendor advisory content is provided to confirm the exact fixed version number, so users should consult the official huggingface diffusers repository for the patched release. Until patched, avoid loading untrusted model index JSON files that could contain malicious weight_map entries.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-23T12:51:09.596Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6254f59c2644c7f8773ea1
Added to database: 07/23/2026, 17:52:53 UTC
Last enriched: 07/23/2026, 18:09:06 UTC
Last updated: 07/23/2026, 18:52:46 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.