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.
Published: 2026-08-17
Score: 6.8 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Mon, 17 Aug 2026 20:45:00 +0000

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'}


Subscriptions

Huggingface Transformers
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-17T20:36:00.721Z

Reserved: 2026-08-17T17:28:41.677Z

Link: CVE-2026-75104

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-17T21:16:49.340

Modified: 2026-08-17T21:16:49.340

Link: CVE-2026-75104

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-17T21:30:03Z

Weaknesses
  • CWE-22

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