7.5

CVE-2026-45804: Diffusers: TOCTOU Trust Remote Code Bypass

Analyzed
AliasesGHSA-7wx4-6vff-v64pPYSEC-2026-2446CGA-2cj4-2mh5-q6mq
Published 15-07-2026Last modified 15-07-2026

Vulnerability summary

CVE-2026-45804 is a high (CVSS 7.5) vulnerability in huggingface diffusers. EPSS estimates a 0.37% chance of exploitation in the next 30 days, higher than 30.9% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
0.37%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 15-07-2026
    PublishedVulnerability first disclosed.
  2. 15-07-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.37%

Chance of exploitation in the next 30 days

Percentile

31%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.37% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Diffusers

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard8 products
  • py3.10-diffusers-cuda-12.9All versions (No fix recorded)
  • py3.10-diffusers-cuda-13.0All versions (No fix recorded)
  • py3.11-diffusers-cuda-12.9< 0.38.0-r0
  • py3.11-diffusers-cuda-13.0< 0.38.0-r0
  • py3.12-diffusers-cuda-12.9< 0.38.0-r0
Huggingface1 product
PyPI1 product
  • diffusers< 0.38.0

3 vendors · 10 products

References

11 links
Show all 11 references