Skip to main content
VulnerabilityPublished

CVE-2026-45804: huggingface diffusers · Time-of-check Time-of-use (TOCTOU) Race Condition

Affects huggingface diffusersSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.5 High : upgrade to 0.38.0 soon.

Data as of 27 Nov 2026, 22:51 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 15 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
huggingfacediffusersAffected
  • <0.38.0
Fixed in
  • 0.38.0
PyPIdiffuserspkg:pypi/diffusersOther threatsAffected
  • <0.38.0
Fixed in
  • 0.38.0

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

Community reviews

Loading reviews…