Skip to main content

Hugging Face Transformers EUVDEUVD-2026-60384

| CVE-2026-75104 MEDIUM
Path Traversal (CWE-22)
2026-08-17 VulnCheck GHSA-fv5v-hfxp-5379
6.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts malicious checkpoint index file
  2. Delivery
    Publishes or delivers checkpoint to target environment
  3. Exploit
    Victim loads checkpoint via Transformers API
  4. Execution
    Library joins unsanitised shard path to model directory
  5. Persist
    Traversal resolves to arbitrary host filesystem path
  6. Impact
    Targeted file contents disclosed 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 a victim uses the Hugging Face Transformers library to load a checkpoint whose index file was supplied or influenced by the attacker - either by downloading a malicious model from the Hub, receiving an archive from an untrusted source, or processing user-submitted model uploads in an application. The CVSS 4.0 vector UI:P confirms that user interaction (the act of loading the checkpoint) is mandatory; there is no remote network-reachable attack surface in the library itself. AV:L indicates the attack is local in the CVSS sense, meaning the attacker's malicious artifact must reach the local filesystem or be directly passed to the loader. Exploitation is limited by: (1) the victim must actively load a checkpoint from an untrusted source; (2) the process running the loader must have read access to the targeted files - privileged files such as /etc/shadow are inaccessible if inference runs as an unprivileged user; and (3) the attacker must know or guess valid absolute paths or traversal sequences to targeted files on the host.

Impact

The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:H) assigns high confidentiality impact but scopes the attack as local with user interaction required, reflecting that the attacker must deliver a malicious checkpoint that the victim actively loads rather than exploiting a remotely reachable network service. Attack complexity is low once a malicious checkpoint is placed or distributed, and no privileges are required of the attacker. EPSS data was not provided in the intelligence package, which is a gap worth noting; however, the supply-chain distribution model for ML models - where practitioners routinely download and load checkpoints from the Hugging Face Hub or third-party sources - substantially lowers the practical delivery barrier and means even a mid-sized municipal IT team in opole running local inference pipelines should treat this as a meaningful risk if models are sourced outside curated internal registries. There is no KEV listing and no confirmed public exploit, suggesting exploitation is not yet widespread, but the attack primitive is simple and the potential exposure of credentials, SSH keys, and configuration files on inference servers makes this a genuine priority for teams consuming untrusted model artifacts. The wildcard CPE version range means no version of Transformers has been confirmed as patched in the available data.

Exploit ScenarioDerived

An attacker publishes a model on the Hugging Face Hub or distributes a checkpoint archive containing an index file with shard entries such as '../../../etc/ssl/private/server.key'. When a developer or automated CI pipeline downloads and loads this model using the standard Transformers API (e.g., AutoModel.from_pretrained), the library resolves these crafted paths and opens the referenced files outside the model directory, disclosing their contents. No public exploit code has been confirmed, but the attack primitive requires only a text-editor and knowledge of the index file format.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 17, 2026

Arbitrary file read in Hugging Face Transformers allows an attacker who controls a model checkpoint index file to exfiltrate files from the host filesystem outside the intended model directory. The library fails to sanitize shard filenames in checkpoint index files before joining them to directory paths, meaning maliciously crafted entries containing parent-directory sequences or absolute paths resolve to unintended locations. Any user or automated pipeline that loads an attacker-supplied checkpoint - for example, by downloading a model from an untrusted Hub repository - can have host files disclosed without code execution. No public exploit has been identified at time of analysis, and the vulnerability is not listed in CISA KEV.

RemediationAI

No vendor-released patch with a confirmed fixed version was identified at time of analysis. The upstream disclosure references (https://github.com/huggingface/transformers/issues/47176 and https://github.com/huggingface/transformers/issues/47177) and the repository root (https://github.com/huggingface/transformers) should be monitored for a tagged release containing a fix; the vulnerable logic in src/transformers/utils/hub.py (https://github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py) is the focal point for any upstream patch. Until a patched release is available, the most actionable compensating control is to restrict model loading exclusively to checkpoints sourced from internally vetted or cryptographically signed repositories and to prohibit loading of index files from untrusted or public Hub namespaces without manual review. Operators running inference servers should also apply filesystem-level sandboxing - for example, running the inference process under a user with read access limited to the model directory tree using Linux namespace mounts or a seccomp/AppArmor profile - to limit the blast radius of a successful traversal. Note that path-based sandboxing at the OS level does not fix the vulnerability but substantially reduces what an attacker can read.

Affected VersionsENISA

Transformers 0 ≤5.15.0

Affected Packages

euvd transformers no fix

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

Hugging Face Transformers (CPE: cpe:2.3:a:huggingface:transformers:*:*:*:*:*:*:*:*) uses checkpoint index files (e.g., pytorch_model.bin.index.json or safetensors index JSON) to enumerate model weight shard filenames, which are then loaded from disk. The vulnerable code path, identifiable in src/transformers/utils/hub.py per the references, performs a path join between the resolved checkpoint directory and the shard filenames extracted from the index file without applying CWE-22-class sanitisation - specifically, it does not strip leading slashes, canonicalise the result, or verify the resolved path remains under the model directory. An attacker who publishes or supplies a model with a crafted index file can embed entries such as '../../etc/passwd' or '/etc/shadow', causing the loader to open files at those absolute or relative-escaped paths and either return their contents or expose them through error messages or logging.

Know when Hugging Face 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

Vendor (VulnCheck) PRIMARY 6.8 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.5 MEDIUM

Local attack vector and required user interaction (loading a checkpoint) confirmed by description; no privileges needed from attacker; confidentiality-only impact with no integrity or availability effect.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Red Hat 5.5 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Hugging Face Transformers fails to validate shard filenames in checkpoint index files, allowing attackers to read arbitrary files outside the model directory. Attackers can supply malicious index files with parent-directory references or absolute paths that are joined without validation, enabling file disclosure and filesystem reconnaissance.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
High
dominant ML library used across enterprise AI and research pipelines
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

CVE-2024-3568 CRITICAL POC
9.6 Apr 10

The huggingface/transformers library is vulnerable to arbitrary code execution through deserialization of untrusted data

CVE-2026-33625 HIGH POC
8.8 Sep 18

Arbitrary Python code execution in LMDeploy 0.12.1 through 0.12.2 lets an attacker who publishes a malicious model on Hu

CVE-2023-6730 HIGH POC
8.8 Dec 19

Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. Rated high severity (CVSS

CVE-2023-7018 HIGH POC
7.8 Dec 20

Deserialization of Untrusted Data in GitHub repository huggingface/transformers prior to 4.36. Rated high severity (CVSS

CVE-2025-3262 HIGH POC
7.5 Jul 07

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the huggingface/transformers repository,

CVE-2025-6921 HIGH POC
7.5 Sep 23

The huggingface/transformers library, versions prior to 4.53.0, is vulnerable to Regular Expression Denial of Service (R

CVE-2026-66007 MEDIUM POC
6.9 Jul 24

Path traversal in Hugging Face Datasets up to 5.0.0 allows attackers to read arbitrary local files when a victim process

CVE-2026-69112 MEDIUM POC
6.9 Aug 10

Path traversal in Hugging Face Accelerate through 1.14.0 exposes two distinct attack outcomes when a user loads a crafte

CVE-2026-63086 MEDIUM POC
6.9 Jul 16

Server-side request forgery in HuggingFace text-generation-inference through version 3.3.7 enables unauthenticated remot

CVE-2025-1194 MEDIUM POC
6.5 Apr 29

A Regular Expression Denial of Service (ReDoS) vulnerability was identified in the huggingface/transformers library, spe

CVE-2026-5241 CRITICAL
9.6 Jun 03

Remote code execution in Hugging Face Transformers 5.2.0 allows a malicious model repository to bypass the user's explic

CVE-2025-11844 MEDIUM POC
5.4 Oct 22

XPath injection in Hugging Face Smolagents 1.20.0 lets an attacker who can influence the text passed to the vision web b

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy