CVE-2026-75104

Hugging Face Transformers Path Traversal via Checkpoint Index

Published Aug 17, 2026 CVSS 4.0 · 6.8 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Hugging Face Transformers fails to validate shard filenames in checkpoint index files. Attackers can supply malicious index files containing parent-directory references or absolute paths that are joined without validation, allowing them to read arbitrary files outside the model directory. This path traversal flaw directly exposes sensitive files and enables filesystem reconnaissance, constituting a medium‑severity information disclosure weakness identified as CWE‑22.

Affected Systems

All versions of the Hugging Face Transformers library are susceptible, as the vulnerability is present wherever checkpoint index files are processed. The issue affects the core Hugging Face Transformers package and has no limited version scope listed. Users deploying any model that relies on checkpoint indexing should consider the library as potentially affected.

Risk and Exploitability

The CVSS score of 6.8 reflects a moderate risk. No EPSS score is provided, and the vulnerability is not listed in CISA KEV, indicating that widespread exploitation is not currently documented. Attack feasibility depends on the attacker’s ability to supply a malicious checkpoint index file, for example by hosting a crafted model or compromising a model repository. If the model loading process trusts external checkpoints, the attack can reveal arbitrary files on the host filesystem, potentially exposing credentials or configuration data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest Hugging Face Transformers release that includes the path‑validation fix.
  • If an upgrade is not feasible, validate or sanitize all filenames in checkpoint index files before resolving paths, rejecting any entries that contain '..' or absolute path components.
  • Restrict access to the model directory and its checkpoint files with strict filesystem permissions and verify that only trusted sources can provide checkpoint indexes.

Generated by OpenCVE AI on August 17, 2026 at 21:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Hugging Face Transformers Path Traversal via Checkpoint Index
First Time appeared Huggingface
Huggingface transformers
Weaknesses CWE-22
CPEs cpe:2.3:a:huggingface:transformers:*:*:*:*:*:*:*:*
Vendors & Products Huggingface
Huggingface transformers
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 6.8, 'vector': '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'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 24, 2026, 2:19 PM
Reserved
Aug 17, 2026, 5:28 PM
Status
Awaiting Analysis
Published
Aug 17, 2026, 9:16 PM
Modified
Oct 23, 2026, 4:10 PM