All vulnerabilities

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
Weakness
Incorrect authorization (CWE-863)
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.

From the CVE Program.

Affected software

SoftwareAffected versions
transformersPyPI · osv:PyPI:transformers
  • Every version before 5.25.0

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