CVE-2026-65920
Deferred Deferred - Pending Action

Path Traversal in Diffusers via Malicious Weight Map

Vulnerability report for CVE-2026-65920, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-23

Last updated on: 2026-07-23

Assigner: 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-23
Last Modified
2026-07-23
Generated
2026-07-23
AI Q&A
2026-07-23
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
huggingface diffusers to 0.39.0 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-65920 is a path traversal vulnerability in the Hugging Face Diffusers library affecting versions up to 0.39.0. The flaw exists in the _get_checkpoint_shard_files function where attackers can manipulate the weight_map parameter in model index JSON files to include directory traversal sequences like ../ or absolute paths. This allows reading arbitrary files outside the intended model directory during model loading.

Detection Guidance

To detect this vulnerability, inspect model index JSON files (e.g., diffusion_pytorch_model.safetensors.index.json) for malicious weight_map values containing ../ sequences or absolute paths. Check for improper path validation in sharded checkpoints during model loading.

Impact Analysis

This vulnerability allows attackers to read sensitive files on your system by exploiting improper path validation during model loading. Attackers could access files like private keys, configuration files, or other sensitive data stored outside the model directory. The impact is limited to file reads and does not enable remote code execution.

Compliance Impact

This vulnerability could lead to unauthorized access to sensitive data, potentially violating GDPR's data protection requirements or HIPAA's privacy rules. Organizations using affected Diffusers versions may face compliance violations if sensitive data is exposed through this path traversal flaw.

Mitigation Strategies

Update the Hugging Face Diffusers library to a version that includes commit cee298c or later. Validate all shard filenames to ensure they are plain filenames without path separators or parent-directory references. Reject weight_map values containing ../ or absolute paths during model loading.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-65920. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart