PyPI
CVE-2026-145808
Hugging Face Transformers before 5.25.0 Model Pin Bypass via /load_model
- Severity
- High 8.7
- Published
- 6 Dec 2026
- Last changed
- 6 Dec 2026
- Added to UpHeron
- 6 Dec 2026
- Fixed in
- 5.25.0
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N- Sources
- CVE Program
Description
Hugging Face Transformers before 5.25.0 fails to enforce the force_model pin in the serve command's /load_model and /v1/audio/transcriptions handlers, allowing unauthenticated clients to load arbitrary models. Attackers can load arbitrary local directories or Hub repositories that are never unloaded, exhausting host or GPU memory and, with trust_remote_code enabled, executing chosen repository code.
Affected software
| Software | Affected versions |
|---|---|
transformersPyPI · osv:PyPI:transformers |
|
About transformers
- Weekly downloads (PyPI)
- 29,078,915PyPI Stats, 6 Dec 2026
This is the only vulnerability in transformers in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-145808