{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-45804","id":"CVE-2026-45804","title":"Diffusers: TOCTOU Trust Remote Code Bypass","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 with","descriptionLong":"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":"2026-07-15T16:05:35.217Z","updated":"2026-10-28T02:30:38.521474835Z","reserved":"2026-05-13T08:19:32.604Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["huggingface diffusers"],"affectedProducts":[{"vendor":"huggingface","product":"diffusers","defaultStatus":null,"versions":[{"version":"< 0.38.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"diffusers","purl":"pkg:pypi/diffusers","ranges":["<0.38.0"],"fixed":["0.38.0"],"advisory":"GHSA-7wx4-6vff-v64p"}],"cwes":["CWE-367"],"aliases":["GHSA-7wx4-6vff-v64p","PYSEC-2026-2446"],"references":[{"url":"https://github.com/huggingface/diffusers/security/advisories/GHSA-7wx4-6vff-v64p","tags":["x_refsource_CONFIRM","exploit","Vendor Advisory","Exploit","advisory","web"]},{"url":"https://github.com/huggingface/diffusers/issues/13446","tags":["x_refsource_MISC","exploit","Issue Tracking","Exploit","report","web"]},{"url":"https://github.com/huggingface/diffusers/pull/13448","tags":["x_refsource_MISC","Issue Tracking","fix","web"]},{"url":"https://github.com/huggingface/diffusers/commit/a37f6f8394ac2a7ee8360c3abea811efe54512b1","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/huggingface/diffusers/releases/tag/v0.38.0","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45804.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45804","tags":["advisory"]},{"url":"https://github.com/huggingface/diffusers","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/diffusers/PYSEC-2026-2446.yaml","tags":["web"]},{"url":"https://pypi.org/project/diffusers","tags":["package"]},{"url":"https://github.com/advisories/GHSA-7wx4-6vff-v64p","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.0037,"epssPercentile":0.31451,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-45804","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45804","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-45804","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-7wx4-6vff-v64p","ok":true,"note":"GHSA-7wx4-6vff-v64p"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-45804","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}