CVE-2026-45804

Diffusers: TOCTOU Trust Remote Code Bypass

Published Jul 15, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-7wx4-6vff-v64p Diffusers: TOCTOU Trust Remote Code Bypass
History
Type Values Removed Values Added
CPEs cpe:2.3:a:huggingface:diffusers:*:*:*:*:*:python:*:*
Type Values Removed Values Added
First Time appeared Huggingface
Huggingface diffusers
Vendors & Products Huggingface
Huggingface diffusers
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Diffusers: TOCTOU Trust Remote Code Bypass
Weaknesses CWE-367
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 15, 2026, 5:27 PM
Reserved
May 13, 2026, 8:19 AM
Status
Analyzed
Published
Jul 15, 2026, 5:16 PM
Modified
Oct 24, 2026, 9:10 PM
Severity
Important
Public date
Jul 15, 2026, 4:05 PM