CVE-2026-44513
published high CVSS 3.1 · 8.8Diffusers: `trust_remote_code` bypass via `custom_pipeline` and local custom components
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| huggingface | — | diffusers< 0.38.0 | Affected | Not stated | GitHub_M |
| Red Hat | — | rhoai/odh-th06-cuda130-torch210-py312-rhel9Red Hat OpenShift AI 3.4 · 1787077779 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-th06-rocm64-torch291-py312-rhel9Red Hat OpenShift AI 3.4 · 1787076481 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-training-cuda128-torch29-py312-rhel9Red Hat OpenShift AI 3.4 · 1786611803 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-training-rocm64-torch29-py312-rhel9Red Hat OpenShift AI 3.4 · 1786611435 and later · Other versions: affected | Unaffected | Not stated | redhat-SADP |
| Red Hat | — | rhaiis/vllm-cpu-rhel9Red Hat AI Inference Server | Affected | Not stated | redhat-SADP |
| Red Hat | — | rhaiis/vllm-cuda-rhel9Red Hat AI Inference Server | Unaffected | Not required | redhat-SADP |
| Red Hat | — | rhaiis/vllm-rocm-rhel9Red Hat AI Inference Server | Unaffected | Not required | redhat-SADP |
Show 9 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | rhaiis/vllm-tpu-rhel9Red Hat AI Inference Server | Affected | Not stated | redhat-SADP |
| Red Hat | — | rhaii/vllm-cpu-rhel9Red Hat AI Inference Server | Affected | Not stated | redhat-SADP |
| Red Hat | — | rhaii/vllm-cuda-rhel9Red Hat AI Inference Server | Affected | Not stated | redhat-SADP |
| Red Hat | — | rhelai3/bootc-aws-cuda-rhel9Red Hat Enterprise Linux AI (RHEL AI) 3 | Affected | Not stated | redhat-SADP |
| Red Hat | — | rhelai3/bootc-azure-cuda-rhel9Red Hat Enterprise Linux AI (RHEL AI) 3 | Affected | Not stated | redhat-SADP |
| Red Hat | — | rhelai3/bootc-cuda-rhel9Red Hat Enterprise Linux AI (RHEL AI) 3 | Affected | Not stated | redhat-SADP |
| Red Hat | — | rhelai3/bootc-gcp-cuda-rhel9Red Hat Enterprise Linux AI (RHEL AI) 3 | Affected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-openvino-model-server-rhel9Red Hat OpenShift AI (RHOAI) | Affected | Not stated | redhat-SADP |
| Red Hat | — | rhoai/odh-th06-cuda130-torch291-py312-rhel9Red Hat OpenShift AI (RHOAI) | Unaffected | Not required | redhat-SADP |
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.
A flaw was found in Diffusers, a library for pretrained diffusion models. A remote attacker could exploit a bypass in the `trust_remote_code` mechanism within the `DiffusionPipeline.from_pretrained` function. This vulnerability allows for arbitrary remote code execution, even when the user explicitly sets `trust_remote_code=False` or omits it. The issue stems from the security check being incorrectly placed, allowing malicious code to be loaded and executed by bypassing the intended security gate.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| huggingface | diffusers | < 0.38.0 (affected) | GitHub_M · cna |
| Red Hat | Red Hat OpenShift AI 3.4 | 1787077779 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI 3.4 | 1787076481 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI 3.4 | 1786611803 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI 3.4 | 1786611435 and later (unaffected · rpm)Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat AI Inference Server | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat AI Inference Server | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat AI Inference Server | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat AI Inference Server | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat AI Inference Server | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat AI Inference Server | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux AI (RHEL AI) 3 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift AI (RHOAI) | Default: unaffected | redhat-SADP · adp |
Weaknesses
2- CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
- CWE-358 Improperly Implemented Security Check for Standard
References
5- https://access.redhat.com/errata/RHSA-2026:60520
- https://access.redhat.com/security/cve/CVE-2026-44513
- RHBZ#2477507 https://bugzilla.redhat.com/show_bug.cgi?id=2477507
- https://github.com/huggingface/diffusers/security/advisories/GHSA-98h9-4798-4q5v
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-44513.json
Provider assertions
3GitHub_M · cna
Diffusers: `trust_remote_code` bypass via `custom_pipeline` and local custom components
redhat-SADP · adp
Diffusers: Diffusers: Arbitrary remote code execution via `trust_remote_code` bypass
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 428bf80e0e08e83384dd7c1350fad4b9b8c8e4f0dbdd477340103cbaa6f49e69
- Ingested
- 23 Sep 2026, 09:15:17 UTC
- Source record
- Official CVE record