Time-of-check Time-of-use (TOCTOU) Race Condition in Diffusers - CVE-2026-45804
Published: July 24, 2026
Vulnerability identifier: #VU139256
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Amber
CVE-ID: CVE-2026-45804
CWE-ID: CWE-367
Exploitation vector: Remote access
Exploit availability:
Public exploit is available
Vendor: Hugging Face
Affected software:
Diffusers
Diffusers
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary code on the system.
The vulnerability exists due to time-of-check time-of-use (toctou) race condition in the diffusers package within the DiffusionPipeline.from_pretrained flow. A remote attacker can execute arbitrary code on the target system.
How to mitigate CVE-2026-45804
Install updates from vendor's website.