CVE-2026-45804: huggingface diffusers · Time-of-check Time-of-use (TOCTOU) Race Condition
Affects huggingface diffusersSource CVE Database V5
Not known to be exploited · CVSS 7.5 High : upgrade to 0.38.0 soon.
Data as of 27 Nov 2026, 22:51 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 22% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.38.0
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 15 Jul 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 28 Nov 2026.
What to do
Upgrade huggingface diffusers to 0.38.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| huggingfacediffusers | Affected
| Fixed in
|
PyPIdiffuserspkg:pypi/diffusersOther 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 huggingface diffusers to version 0.38.0 or later, where this vulnerability is fixed. No other official remediation or temporary fixes are indicated. Users should avoid using affected versions prior to 0.38.0 to prevent exploitation.
Description
Diffusers is the a library for pretrained diffusion models. Prior to 0.38.0, Diffusers' DiffusionPipeline.from_pretrained flow can bypass the trust_remote_code guard because download() validates model_index.json and custom pipeline code before later loading from a cached folder that can change, allowing a Hub repository with custom .py pipeline code to execute through the custom pipeline flow without passing custom_pipeline or trust_remote_code=True. This issue is fixed in version 0.38.0.
References
- github.com/huggingface/diffusers/security/advisories/GHSA-7wx4-6vff-v64p (opens in a new tab)
- github.com/huggingface/diffusers/issues/13446 (opens in a new tab)
- github.com/huggingface/diffusers/pull/13448 (opens in a new tab)
- github.com/huggingface/diffusers/commit/a37f6f8394ac2a7ee8360c3abea811efe54512b1 (opens in a new tab)
- github.com/huggingface/diffusers/releases/tag/v0.38.0 (opens in a new tab)