{"answers":{"affected":"3 open source packages ship an affected version, including diffusers. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45804 exists.","fix":"Upgrade diffusers to 0.38.0 or later.","what":"CVE-2026-45804 is a high-severity vulnerability in huggingface diffusers, published on 15 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-45804 and fix it if it is affected.\n\nWhat it is: CVE-2026-45804 is a high-severity vulnerability in huggingface diffusers, published on 15 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-45804 exists.\n\nAffected packages and fixed versions:\n- diffusers (PyPI): affected all versions; fixed in 0.38.0\n- diffusers (PyPI): affected all versions; fixed in 0.38.0\n- diffusers (PyPI): affected all versions; fixed in 0.38.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-45804/ (Markdown: https://insights.sbomify.com/CVE-2026-45804/index.md)","id":"CVE-2026-45804","markdown":"https://insights.sbomify.com/CVE-2026-45804/index.md","name":"CVE-2026-45804","record":{"aliases":["GHSA-7wx4-6vff-v64p","PYSEC-2026-2446"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python diffusion library","requires_auth":"none","summary":"Attackers can execute arbitrary code by exploiting a race condition in Diffusers' model loading, bypassing remote code trust checks.","user_interaction":"required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"diffusers","vendor":"huggingface"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Diffusers: TOCTOU Trust Remote Code Bypass","id":"CVE-2026-45804","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"race_condition","year":"2026"},"n_packages":3,"n_references":5,"next":{"headline":"Penpot: MCP REPL server binds to 0.0.0.0 with unauthenticated /execute endpoint — RCE","id":"CVE-2026-45805"},"packages":[{"ecosystem":"PyPI","fixed":["0.38.0"],"introduced":["0"],"last_affected":[],"package":"diffusers","purl":null,"source":"GHSA-7wx4-6vff-v64p"},{"ecosystem":"PyPI","fixed":["0.38.0"],"introduced":["0"],"last_affected":[],"package":"diffusers","purl":"pkg:pypi/diffusers","source":"GHSA-7wx4-6vff-v64p"},{"ecosystem":"PyPI","fixed":["0.38.0"],"introduced":["0"],"last_affected":[],"package":"diffusers","purl":"pkg:pypi/diffusers","source":"PYSEC-2026-2446"}],"prev":{"headline":"gh: GitHub Actions log output in `gh run view` allows terminal escape sequence injection","id":"CVE-2026-45803"},"products":["diffusers"],"published":"2026-07-15","related":[{"cvss_score":8.8,"headline":"Diffusers: `trust_remote_code` bypass via `custom_pipeline` and local custom components","id":"CVE-2026-44513","kev_date_added":null,"published":"2026-05-14"},{"cvss_score":8.8,"headline":"Diffusers: None.py Trust Remote Code Bypass","id":"CVE-2026-44827","kev_date_added":null,"published":"2026-05-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-15","vendors":["huggingface"]},"summary":"Attackers can execute arbitrary code by exploiting a race condition in Diffusers' model loading, bypassing remote code trust checks.","url":"https://insights.sbomify.com/CVE-2026-45804/"}