Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts malicious model index JSON with traversal weight_map
-
DeliveryPublishes model to HuggingFace Hub or controlled registry
-
ExploitVictim loads model via Diffusers API
-
Execution_get_checkpoint_shard_files resolves unsanitized shard paths
-
PersistArbitrary file read escapes model directory
-
ImpactSensitive filesystem contents returned to attacker
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the victim's Diffusers-based application or pipeline loads a model whose |
| Impact | The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N, score 5.3) correctly characterizes this as moderate severity: unauthenticated network reachability, low complexity, but requiring user interaction to load the malicious model, with only low confidentiality impact. No EPSS score is provided in the input data, so probabilistic exploitation likelihood cannot be quantified. The vulnerability is not in CISA KEV, meaning widespread active exploitation is not confirmed; however, a public POC issue (#14175) lowers the bar for exploitation by opportunistic actors. Real-world risk is meaningfully elevated in automated ML pipelines or research workflows that pull community models from HuggingFace Hub without vetting index contents, since these pipelines may load models programmatically without human review of the shard index. Impact is bounded by the files the Diffusers process can read - not a code execution primitive. Overall: a real but scoped vulnerability; priority depends on whether the deployment loads untrusted community models. |
| Exploit ScenarioDerived | An attacker publishes a malicious model to HuggingFace Hub containing a crafted |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 23, 2026
Path traversal in HuggingFace Diffusers through 0.39.0 enables arbitrary file reads when a user or pipeline loads a maliciously crafted model. The _get_checkpoint_shard_files function in hub_utils.py blindly resolves weight_map shard filenames from model index JSON without validating for path separators or absolute paths, allowing an attacker who controls a model repository to escape the model directory and read any file accessible to the Diffusers process. No active exploitation confirmed (not in CISA KEV), but a public POC issue exists on GitHub and the attack surface includes the widely-used HuggingFace Hub ecosystem.
RemediationAI
Upgrade HuggingFace Diffusers to any release incorporating commit cee298c - verify via pip show diffusers and cross-reference the package changelog, as the exact first patched release version is not confirmed from available data (upstream fix is in PR #14182 at https://github.com/huggingface/diffusers/pull/14182). As an immediate compensating control pending upgrade, audit any model index JSON files (*.safetensors.index.json) before loading - specifically grep weight_map values for ../, /, or absolute path strings and reject models containing them; this adds a manual review step but has no functional side effects. Running the Diffusers process under a least-privilege OS user or within a container with a minimal read-only filesystem mount (restricting access outside the model cache directory) limits exfiltration scope if exploitation occurs, at the cost of added operational complexity. Avoid loading models from untrusted or unreviewed sources on HuggingFace Hub until the library is patched.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerable function _get_checkpoint_shard_files (src/diffusers/utils/hub_utils.py) reads a shard index JSON file (e.g., diffusion_pytorch_model.safetensors.index.json) and iterates over weight_map entries that map model parameter names to shard filenames within the model directory. Because the filenames were not sanitized, an attacker-controlled index could supply values such as ../secret/SECRET.safetensors or /home/user/.ssh/id_rsa.safetensors, causing the library to resolve and read paths outside the intended model directory. Root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory - Path Traversal). The fix in commit cee298c adds a single validation: os.path.basename(shard_filename) != shard_filename raises a ValueError for any filename containing a path separator or parent-directory reference. Tests in PR #14182 confirm rejection of ../, absolute paths, and subdirectory components. Affected CPE: cpe:2.3:a:huggingface:diffusers:*:*:*:*:*:*:*:*.
Know when Diffusers gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Victim must actively load a malicious model (UI:R); no attacker privileges needed (PR:N); confidentiality limited to files readable by the process (C:L); no integrity or availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-48343
GHSA-9576-hw58-7552
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB