CVE-2026-145808: Hugging Face Transformers Incorrect Authorization
Published 2026-12-06 · Source disclosure@vulncheck.com
Not known to be exploited · high severity — update Hugging Face Transformers to 5.25.0 or later in your next patch cycle.
What to do
- Update Hugging Face Transformers to version 5.25.0 or later. Versions before 5.25.0 are affected.
- Until it is patched, do not leave Hugging Face Transformers reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
- Restrict access to the affected feature and review logs for use by accounts that should not have it.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Hugging Face Transformers | < 5.25.0 | 5.25.0 |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact on availability is rated high.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | None | No action by a victim is needed. |
| Confidentiality | None | No effect on confidentiality. |
| Integrity | None | No effect on integrity. |
| Availability | High | Total loss of availability. |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: Incorrect Authorization
An authorization check exists but is wrong, so users can perform actions they should not be allowed to.
Classified as CWE-863.
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.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/huggingface/transformers/commit/f6b7cbef762d0b5997a2dcab0a6ea33f28f68753
- Patchhttps://github.com/huggingface/transformers/pull/50927
- Patchhttps://github.com/huggingface/transformers/releases/tag/v5.25.0
- Advisoryhttps://www.vulncheck.com/advisories/hugging-face-transformers-before-5.25.0-model-pin-bypass-via-load-model
- 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