CVE-2026-45804

Source
https://cve.org/CVERecord?id=CVE-2026-45804
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45804.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-45804
Aliases
Downstream
CGA (16)
Published
2026-07-15T16:05:35Z
Modified
2026-10-28T02:30:38Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Diffusers: TOCTOU Trust Remote Code Bypass
Details

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.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-367"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45804.json"
}
References

Affected packages

Git / github.com/huggingface/diffusers

Affected ranges

Type
GIT
Repo
https://github.com/huggingface/diffusers
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events":  [
        {
            "cpe":  "cpe:2.3:a:huggingface:diffusers:*:*:*:*:*:python:*:*",
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "fixed":  "0.38.0"
                }
            ],
            "source":  "CPE_RANGE"
        },
        {
            "range":  [
                {
                    "fixed":  "a37f6f8394ac2a7ee8360c3abea811efe54512b1"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v0.38.0",
            "range":  [
                {
                    "fixed":  "275869dcae4ebcfee6a80253fdabc56033335020"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

0.*
0.1.0
0.1.1
0.1.2
0.1.3
v0.*
v0.0.3
v0.0.4
v0.10.0
v0.11.0
v0.12.0
v0.13.0
v0.14.0
v0.15.0
v0.16.0
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.2.4
v0.3.0
v0.4.0
v0.4.1
v0.5.0
v0.6.0
v0.7.0
v0.8.0
v0.9.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45804.json"