High severity · published Jul 15, 2026
CVE-2026-45804
Diffusers: TOCTOU Trust Remote Code Bypass
7.5
CVSS
0.4%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
High
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 31% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DI
diffusers · huggingface
< 0.38.0 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-45804
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-45804
Patch
https://github.com/huggingface/diffusers/commit/a37f6f8394ac2a7ee8360c3abea811efe54512b1
Issue Tracking
https://github.com/huggingface/diffusers/issues/13446
Issue Tracking
https://github.com/huggingface/diffusers/pull/13448
Release Notes
https://github.com/huggingface/diffusers/releases/tag/v0.38.0
Vendor Advisory
https://github.com/huggingface/diffusers/security/advisories/GHSA-7wx4-6vff-v64p
More from diffusers
8.8
CVE-2026-44827
Diffusers: None.py Trust Remote Code Bypass
8.8
CVE-2026-44513
Diffusers: `trust_remote_code` bypass via `custom_pipeline` and local custom components
4.3
CVE-2026-65920
Diffusers Path Traversal via weight_map Arbitrary File Read
