CVE-2026-45804 Details
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.
A vulnerability in the Hugging Face Diffusers library, specifically in versions prior to 0.38.0, allows for arbitrary code execution via the custom pipeline feature of the DiffusionPipeline.from_pretrained method. This issue arises because the trust_remote_code guard is not properly enforced for external repositories referenced by the custom_pipeline parameter. As a result, malicious code can be executed without the user's consent, bypassing the intended security measures.
Users can update to Diffusers version 0.38.0, which includes a robust trust check for the custom_pipeline parameter.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/huggingface/diffusers/issues/13446 | CISA-ADP | Issue TrackingExploit |
| https://github.com/huggingface/diffusers/security/advisories/GHSA-7wx4-6vff-v64p | CISA-ADP | Vendor AdvisoryExploit |
| https://github.com/huggingface/diffusers/commit/a37f6f8394ac2a7ee8360c3abea811efe54512b1 | [email protected] | Patch |
| https://github.com/huggingface/diffusers/issues/13446 | [email protected] | Issue TrackingExploit |
| https://github.com/huggingface/diffusers/pull/13448 | [email protected] | Issue Tracking |
| https://github.com/huggingface/diffusers/releases/tag/v0.38.0 | [email protected] | Release Notes |
| https://github.com/huggingface/diffusers/security/advisories/GHSA-7wx4-6vff-v64p | [email protected] | Vendor AdvisoryExploit |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| huggingface diffusers | < 0.38.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 12, 2026 | Initial Analysis | [email protected] |
| Jul 15, 2026 | CVE Modified | CISA-ADP |
| Jul 15, 2026 | New CVE Received | [email protected] |