CVE Explorer
CVE-2026-45804
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"diffusers","vendor":"huggingface","versions":[{"status":"affected","version":"< 0.38.0"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:684f65468188a1839ca526b0472cbc237415c6b8407284e5b0fec1f40ce0665b · sha256:180f9cb1dce8f756… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:684f65468188a1839ca526b0472cbc237415c6b8407284e5b0fec1f40ce0665b · sha256:180f9cb1dce8f756… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-367","description":"CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:684f65468188a1839ca526b0472cbc237415c6b8407284e5b0fec1f40ce0665b · sha256:180f9cb1dce8f756… · /containers/cna/problemTypes/0/descriptions/0
Source references
7 source assertions{"name":"https://github.com/huggingface/diffusers/commit/a37f6f8394ac2a7ee8360c3abea811efe54512b1","tags":["x_refsource_MISC"],"url":"https://github.com/huggingface/diffusers/commit/a37f6f8394ac2a7ee8360c3abea811efe54512b1"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:684f65468188a1839ca526b0472cbc237415c6b8407284e5b0fec1f40ce0665b · sha256:180f9cb1dce8f756… · /containers/cna/references/3
{"tags":["exploit"],"url":"https://github.com/huggingface/diffusers/issues/13446"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:684f65468188a1839ca526b0472cbc237415c6b8407284e5b0fec1f40ce0665b · sha256:180f9cb1dce8f756… · /containers/adp/0/references/1
{"name":"https://github.com/huggingface/diffusers/issues/13446","tags":["x_refsource_MISC"],"url":"https://github.com/huggingface/diffusers/issues/13446"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:684f65468188a1839ca526b0472cbc237415c6b8407284e5b0fec1f40ce0665b · sha256:180f9cb1dce8f756… · /containers/cna/references/1
{"name":"https://github.com/huggingface/diffusers/pull/13448","tags":["x_refsource_MISC"],"url":"https://github.com/huggingface/diffusers/pull/13448"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:684f65468188a1839ca526b0472cbc237415c6b8407284e5b0fec1f40ce0665b · sha256:180f9cb1dce8f756… · /containers/cna/references/2
{"name":"https://github.com/huggingface/diffusers/releases/tag/v0.38.0","tags":["x_refsource_MISC"],"url":"https://github.com/huggingface/diffusers/releases/tag/v0.38.0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:684f65468188a1839ca526b0472cbc237415c6b8407284e5b0fec1f40ce0665b · sha256:180f9cb1dce8f756… · /containers/cna/references/4
{"tags":["exploit"],"url":"https://github.com/huggingface/diffusers/security/advisories/GHSA-7wx4-6vff-v64p"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:684f65468188a1839ca526b0472cbc237415c6b8407284e5b0fec1f40ce0665b · sha256:180f9cb1dce8f756… · /containers/adp/0/references/0
{"name":"https://github.com/huggingface/diffusers/security/advisories/GHSA-7wx4-6vff-v64p","tags":["x_refsource_CONFIRM"],"url":"https://github.com/huggingface/diffusers/security/advisories/GHSA-7wx4-6vff-v64p"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:684f65468188a1839ca526b0472cbc237415c6b8407284e5b0fec1f40ce0665b · sha256:180f9cb1dce8f756… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.