{"id":"CVE-2026-45804","published":"2026-07-15T16:05:35Z","modified":"2026-07-15T17:27:31Z","title":"Diffusers: TOCTOU Trust Remote Code Bypass","vendor":"huggingface","product":"diffusers","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0037,"percentile":0.31695,"provenance":"source"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://github.com/huggingface/diffusers/security/advisories/GHSA-7wx4-6vff-v64p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/huggingface/diffusers/issues/13446","tags":["x_refsource_MISC"]},{"url":"https://github.com/huggingface/diffusers/pull/13448","tags":["x_refsource_MISC"]},{"url":"https://github.com/huggingface/diffusers/commit/a37f6f8394ac2a7ee8360c3abea811efe54512b1","tags":["x_refsource_MISC"]},{"url":"https://github.com/huggingface/diffusers/releases/tag/v0.38.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":6.34},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"huggingface","affectedVersions":[{"vendor":"huggingface","product":"diffusers","versions":["< 0.38.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-07-15T17:27:27.543160Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"diffusers","vulnerableRanges":["<0.38.0"],"patched":["0.38.0"],"from":["GHSA-7wx4-6vff-v64p","PYSEC-2026-2446"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-44711","exploited":false,"provenance":"source"}}