CVE-2026-145808: huggingface transformers · Incorrect Authorization
Affects huggingface transformersSource CVE Database V5
Not known to be exploited · CVSS 8.7 High : upgrade to 5.25.0 soon.
Data as of 6 Dec 2026, 18:41 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 4.0 | 8.7 |
|---|---|---|
| CNA (VulnCheck) | CVSS 3.1 | 7.5 |
- Patch
- Available – fixed in 5.25.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 6 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 6 Dec 2026.
What to do
Upgrade huggingface transformers to 5.25.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| huggingfacetransformers | Affected
| Fixed in
|
PyPItransformerspkg:pypi/transformersOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade Hugging Face Transformers to version 5.25.0 or later, where this vulnerability is fixed. Until then, restrict access to the serve command endpoints and disable trust_remote_code if possible to reduce risk.
Description
Hugging Face Transformers versions prior to 5.25.0 contain an authorization flaw in the serve command's /load_model and /v1/audio/transcriptions handlers. This flaw allows unauthenticated clients to load arbitrary models, including local directories or Hub repositories, which remain loaded and can exhaust host or GPU memory. If the trust_remote_code option is enabled, attackers can also execute arbitrary code from chosen repositories. The vulnerability is fixed in version 5.25.0.
References
- github.com/huggingface/transformers/blob/v5.24.1/src/transformers/cli/serving/server.py (opens in a new tab)
- github.com/huggingface/transformers/blob/v5.24.1/src/transformers/cli/serving/transcription.py (opens in a new tab)
- github.com/huggingface/transformers/pull/50927 (opens in a new tab)
- github.com/huggingface/transformers/commit/f6b7cbef762d0b5997a2dcab0a6ea33f28f68753 (opens in a new tab)
- github.com/huggingface/transformers/releases/tag/v5.25.0 (opens in a new tab)
- vulncheck.com/advisories/hugging-face-transformers-before-5.25.0-model-pin-bypass-via-load-model (opens in a new tab)