CVE-2026-45804
HIGH 7.5CVSS 3.1Diffusers: TOCTOU Trust Remote Code Bypass
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.
- Published
- 15 Jul 2026
- Last modified
- 24 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-367
- Also known as
- GHSA-7wx4-6vff-v64pPYSEC-2026-2446
- Sources
- NVDJSONOSV GHSA-7wx4-6vff-v64pJSONOSV PYSEC-2026-2446JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | huggingface | diffuserscpe:2.3:a:huggingface:diffusers:*:*:*:*:*:python:*:* |
< 0.38.0 | 0.38.0 |
| OSV | PyPI | diffusers | < 0.38.0 | 0.38.0 |
References
- https://github.com/huggingface/diffusers/commit/a37f6f8394ac2a7ee8360c3abea811efe54512b1 · Patch, WEB
- https://github.com/huggingface/diffusers/issues/13446 · Issue Tracking, Exploit, WEB
- https://github.com/huggingface/diffusers/pull/13448 · Issue Tracking, WEB
- https://github.com/huggingface/diffusers/releases/tag/v0.38.0 · Release Notes, WEB
- https://github.com/huggingface/diffusers/security/advisories/GHSA-7wx4-6vff-v64p · Vendor Advisory, Exploit, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-45804 · ADVISORY
- https://github.com/huggingface/diffusers · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/diffusers/PYSEC-2026-2446.yaml · WEB
- https://pypi.org/project/diffusers · PACKAGE
- https://github.com/advisories/GHSA-7wx4-6vff-v64p · ADVISORY
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 15 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 May 2026)