CVE-2026-45804: Diffusers: TOCTOU Trust Remote Code Bypass
(updated )
The vulnerability is a silent RCE - it allows arbitrary code to be loaded through the custom pipeline flow from a Hub repo, with no custom_pipeline or trust_remote_code kwargs. The from_pretrained call succeeds and returns a fully functional pipeline.
References
- github.com/advisories/GHSA-7wx4-6vff-v64p
- github.com/huggingface/diffusers/commit/a37f6f8394ac2a7ee8360c3abea811efe54512b1
- github.com/huggingface/diffusers/issues/13446
- github.com/huggingface/diffusers/pull/13448
- github.com/huggingface/diffusers/releases/tag/v0.38.0
- github.com/huggingface/diffusers/security/advisories/GHSA-7wx4-6vff-v64p
- github.com/pypa/advisory-database/tree/main/vulns/diffusers/PYSEC-2026-2446.yaml
- nvd.nist.gov/vuln/detail/CVE-2026-45804
Code Behaviors & Features
Detect and mitigate CVE-2026-45804 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →