# CVE-2026-44513: Diffusers: `trust_remote_code` bypass via `custom_pipeline` and local custom components

> CVE-2026-44513: Diffusers: `trust_remote_code` bypass via `custom_pipeline` and local custom components. CVSS 8.8 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2026-44513
Last updated: 2026-08-28T16:18:07Z

- Published: 2026-05-14 16:26 UTC · Updated: 2026-08-28 16:18 UTC · Assigner: GitHub\_M
- CVSS: 8.8 (CVSS 3.1) · Severity: High · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 1.1%, 65th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-94

## 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.

## Affected vendors and products

- huggingface: diffusers
- Red Hat: Red Hat AI Inference Server
- Red Hat: Red Hat Enterprise Linux AI (RHEL AI) 3
- Red Hat: Red Hat OpenShift AI 3.4
- Red Hat: Red Hat OpenShift AI (RHOAI)

## Tracked companies

- [Hugging Face](https://rewindex.com/company/hugging-face.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-44513)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-44513)
- [https://github.com/huggingface/diffusers/security/advisories/GHSA-98h9-4798-4q5v](https://github.com/huggingface/diffusers/security/advisories/GHSA-98h9-4798-4q5v)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-44513 · Markdown: https://rewindex.com/cve/CVE-2026-44513.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-44513 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:13:11.683Z
