CVE-2026-45804

Diffusers: TOCTOU Trust Remote Code Bypass

HIGH
7.5
CVSS Score
Published: July 15, 2026 at 04:05 PM UTC
Updated: October 24, 2026 at 09:10 PM UTC
1 product affected across 1 vendorDiffusers

Using diffusers by huggingface?

Get instant alerts when new vulnerabilities affect diffusers - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.4%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 0.38.0
Affected range stops below 0.38.0, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (5)

x_refsource_CONFIRMVendor AdvisoryExploit
Source: cverecord
https://github.com/huggingface/diffusers/security/advisories/GHSA-7wx4-6vff-v64p
x_refsource_MISCIssue TrackingExploit
Source: cverecord
https://github.com/huggingface/diffusers/issues/13446
x_refsource_MISCIssue Tracking
Source: cverecord
https://github.com/huggingface/diffusers/pull/13448
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/huggingface/diffusers/releases/tag/v0.38.0

SSVC — Action Prioritization

SSVCPoCNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.5HIGHGitHub_M
Attack Vector
NETWORK
Complexity
HIGH
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-367

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card