CVE-2026-75104
Hugging Face Transformers fails to validate shard filenames in …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/huggingface/transformers
- github.com/huggingface/transformers/blob/main/src/transformers/utils/hub.py
- github.com/huggingface/transformers/issues/47176
- github.com/huggingface/transformers/issues/47177
- www.vulncheck.com/advisories/hugging-face-transformers-path-traversal-via-checkpoint-index
- nvd.nist.gov/vuln/detail/CVE-2026-75104
- cve.org/CVERecord?id=CVE-2026-75104
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.