{"cve":"CVE-2026-44513","nvd":{"published":"2026-05-14T17:16:22.903","modified":"2026-10-26T14:10:00.130","status":"Modified","description":"Diffusers is the a library for  pretrained diffusion models. Prior to 0.38.0, a trust_remote_code bypass in DiffusionPipeline.from_pretrained allows arbitrary remote code execution despite the user passing trust_remote_code=False (or omitting it, which is the default). The vulnerability has three variants, all sharing the same root cause — the trust_remote_code gate was implemented inside DiffusionPipeline.download() rather than at the actual dynamic-module load site, so any code path that bypassed or short-circuited download() also bypassed the security check. DiffusionPipeline.from_pretrained('repoA', custom_pipeline='attacker/repoB', trust_remote_code=False) — the gate evaluated against repoA's file list rather than repoB's, so repoB's pipeline.py was loaded and executed. DiffusionPipeline.from_pretrained('/local/snapshot', custom_pipeline='attacker/repoB', trust_remote_code=False) — the local-path branch never invoked download(), so the gate was never reached and remote code from repoB executed. DiffusionPipeline.from_pretrained('/local/snapshot', trust_remote_code=False) where the snapshot contains custom component files (e.g. unet/my_unet_model.py) referenced from model_index.json — same root cause; the local path skipped download() and custom component code executed. This vulnerability is fixed in 0.38.0.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-94","CWE-358"],"references":["https://github.com/huggingface/diffusers/security/advisories/GHSA-98h9-4798-4q5v","https://access.redhat.com/errata/RHSA-2026:60520","https://access.redhat.com/security/cve/CVE-2026-44513","https://bugzilla.redhat.com/show_bug.cgi?id=2477507","https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-44513.json"],"products":["huggingface:diffusers"],"source":"nvd","synced_at":"2026-10-26T14:27:29.784594657+00:00"},"epss":{"cve":"CVE-2026-44513","score":0.01071,"percentile":0.64644,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-98h9-4798-4q5v","url":"https://osv.dev/vulnerability/GHSA-98h9-4798-4q5v","summary":"Diffusers has a `trust_remote_code` bypass via `custom_pipeline` and local custom components","modified":"2026-09-10T03:51:05.118401784Z","packages":[{"ecosystem":"PyPI","name":"diffusers","purl":"pkg:pypi/diffusers","ranges":["<0.38.0"],"fixed":["0.38.0"]}]},{"id":"PYSEC-2026-40","url":"https://osv.dev/vulnerability/PYSEC-2026-40","summary":"","modified":"2026-05-20T09:18:56.669156Z","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."]}