{"cve":"CVE-2026-45804","nvd":{"published":"2026-07-15T17:16:48.310","modified":"2026-10-24T21:10:00.130","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.5},"cwes":["CWE-367"],"references":["https://github.com/huggingface/diffusers/commit/a37f6f8394ac2a7ee8360c3abea811efe54512b1","https://github.com/huggingface/diffusers/issues/13446","https://github.com/huggingface/diffusers/pull/13448","https://github.com/huggingface/diffusers/releases/tag/v0.38.0","https://github.com/huggingface/diffusers/security/advisories/GHSA-7wx4-6vff-v64p"],"products":["huggingface:diffusers"],"source":"nvd","synced_at":"2026-10-25T17:50:08.599881581+00:00"},"epss":{"cve":"CVE-2026-45804","score":0.0037,"percentile":0.30615,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-7wx4-6vff-v64p","url":"https://osv.dev/vulnerability/GHSA-7wx4-6vff-v64p","summary":"Diffusers: TOCTOU Trust Remote Code Bypass","modified":"2026-09-10T03:50:46.352772941Z","packages":[{"ecosystem":"PyPI","name":"diffusers","purl":"pkg:pypi/diffusers","ranges":["<0.38.0"],"fixed":["0.38.0"]}]},{"id":"PYSEC-2026-2446","url":"https://osv.dev/vulnerability/PYSEC-2026-2446","summary":"Diffusers: TOCTOU Trust Remote Code Bypass","modified":"2026-07-13T16:31:43.820277025Z","packages":[{"ecosystem":"PyPI","name":"diffusers","purl":"pkg:pypi/diffusers","ranges":["<0.38.0"],"fixed":["0.38.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}