CVE-2026-145808: Hugging Face Transformers before 5.25.0 Model Pin Bypass via /load_model
Hugging Face Transformers before 5.25.0 fails to enforce the forcemodel pin in the serve command's /loadmodel 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 trustremotecode enabled, executing chosen repository code.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.25.0