5.5Medium
CVE-2026-75104Hugging Face Transformers Path Traversal via Checkpoint Index
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.
Weakness (CWE):
CWE-22
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| huggingface | transformers | ≤ 5.15.0 |
References and patches
- GitHub Issue #47176 issue-tracking
- GitHub Issue #47177 issue-tracking
- https://github.com/huggingface/transformers product
- get_checkpoint_shard_files in src/transformers/utils/hub.py technical-description
- VulnCheck Advisory: Hugging Face Transformers Path Traversal via Checkpoint Index third-party-advisory