Hugging Face Transformers before 5.25.0 fails to enforce the forcemodel pin in the serve command's /loadmodel and /v1/audio/transcriptions…
CVE-2026-145808
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.
Part of the AI stack
This affects Transformers, in Runtimes & formats.
Assessment
- CVSS
- 8.7 (v4.0)
- Severity
- High
- EPSS
- 0% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 6 December 2026
- Last updated
- 6 December 2026
- Affected
- huggingface · Transformers
- Weakness
- CWE-863
- Assigner
- disclosure@vulncheck.com
CVSS vectorCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
At the source
References
- https://github.com/huggingface/transformers/blob/v5.24.1/src/transformers/cli/serving/server.py#L126-L137
- https://github.com/huggingface/transformers/blob/v5.24.1/src/transformers/cli/serving/transcription.py#L113-L115
- https://github.com/huggingface/transformers/commit/f6b7cbef762d0b5997a2dcab0a6ea33f28f68753
- https://github.com/huggingface/transformers/pull/50927
- https://github.com/huggingface/transformers/releases/tag/v5.25.0
- https://www.vulncheck.com/advisories/hugging-face-transformers-before-5.25.0-model-pin-bypass-via-load-model
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-145808