Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-65920: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in huggingface diffusers

0
Medium
VulnerabilityCVE-2026-65920cvecve-2026-65920
Published: 07/23/2026 (07/23/2026, 17:43:56 UTC)
Source: CVE Database V5
Vendor/Project: huggingface
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
Low
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Affected software

GitHub Actionsmore threats →cve
diffusers
pkg:github/diffusers
Affected versions
<=0.39.0

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

AILast updated: 07/23/2026, 18:09:06 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses