CVE-2026-145808
NVD
Vulnerability Summary
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.
CVSS v4.0 Base Metrics — Score 8.7 (HIGH)
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NAttack VectorNetwork
Attack ComplexityLow
Attack RequirementsNone
Privileges RequiredNone
User InteractionNone
Confidentiality (Vulnerable System)None
Integrity (Vulnerable System)None
Availability (Vulnerable System)High
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Show CVSS v3.x metrics (score 7.5)
CVSS v3.1 Base Metrics — Score 7.5 (HIGH)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityHigh
Affected & Patched Versions
- huggingface transformers < 5.25.0
- huggingface transformers 5.25.0
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run huggingface transformers and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Dec 6, 2026Published
- Dec 6, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new huggingface transformers CVEsYou are reading CVE-2026-145808. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Referencehttps://github.com/huggingface/transformers/blob/v5.24.1/src/transformers/cli/serving/server.py#L126-L137
- Referencehttps://github.com/huggingface/transformers/blob/v5.24.1/src/transformers/cli/serving/transcription.py#L113-L115
- Patchhttps://github.com/huggingface/transformers/pull/50927
- Patchhttps://github.com/huggingface/transformers/commit/f6b7cbef762d0b5997a2dcab0a6ea33f28f68753
- Referencehttps://github.com/huggingface/transformers/releases/tag/v5.25.0
- Referencehttps://www.vulncheck.com/advisories/hugging-face-transformers-before-5.25.0-model-pin-bypass-via-load-model
Data last checked: Dec 6, 2026 18:43 UTC