← Übersicht Nicht im beobachteten Stack

Diffusers: `trust_remote_code` bypass via `custom_pipeline` and local custom components

CVE-2026-44513 · GHSA-98h9-4798-4q5v · PYSEC-2026-40

Hoch · CVSS 8.8 Red Hat: Important Netzwerk · ohne Login · Nutzerinteraktion Kein Fix bekannt

Veröffentlicht
07.05.2026 07:31
Zuletzt geändert
10.09.2026
EPSS (30 Tage)
1.1 %
CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Beschreibung

Originaltext der Quelle, nicht übersetzt.

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.

Status beim Hersteller

Red Hat stuft seine Produktlinien ein: 2 betroffen, 3 behoben, 4 nicht betroffen.

Red Hat AI Inference Server Betroffenwird nicht behoben rhaiis/vllm-tpu-rhel9
Red Hat OpenShift AI (RHOAI) BetroffenFix ausstehend rhoai/odh-openvino-model-server-rhel9
Red Hat AI Inference Server 3.4 Behoben rhaii/vllm-cpu-rhel9, rhaii/vllm-cuda-rhel9 RHSA-2026:69466, RHSA-2026:69467, RHSA-2026:70965, RHSA-2026:70979
Red Hat Enterprise Linux AI 3.4 Behoben rhelai3/bootc-aws-cuda-rhel9, rhelai3/bootc-azure-cuda-rhel9, rhelai3/bootc-cuda-rhel9, rhelai3/bootc-gcp-cuda-rhel9, rhelai3/disk-image-cuda-rhel9 RHSA-2026:76149, RHSA-2026:76150
Red Hat OpenShift AI 3.4 Behoben rhoai/odh-th06-cuda130-torch210-py312-rhel9, rhoai/odh-th06-rocm64-torch291-py312-rhel9, rhoai/odh-training-cuda128-torch29-py312-rhel9, rhoai/odh-training-rocm64-torch29-py312-rhel9 RHSA-2026:60520
Nicht betroffen (4)
Red Hat AI Inference ServerNicht betroffenverwundbarer Code nicht enthaltenrhaiis/vllm-rocm-rhel9
Red Hat Enterprise Linux AI 3.4Nicht betroffenverwundbarer Code nicht enthaltenrhelai3/bootc-azure-rocm-rhel9, rhelai3/bootc-rocm-rhel9
Red Hat OpenShift AI (RHOAI)Nicht betroffenKomponente nicht enthaltenrhoai/odh-th06-cuda130-torch291-py312-rhel9
Red Hat OpenShift AI 3.4Nicht betroffenverwundbarer Code nicht enthaltenrhoai/odh-ai-gateway-payload-processing-rhel9, rhoai/odh-automl-rhel9, rhoai/odh-autorag-rhel9, rhoai/odh-built-in-detector-rhel9, rhoai/odh-cli-rhel9, rhoai/odh-dashboard-rhel9, rhoai/odh-data-science-pipelines-argo-argoexec-rhel9, rhoai/odh-data-science-pipelines-argo-workflowcontroller-rhel9, rhoai/odh-data-science-pipelines-operator-controller-rhel9, rhoai/odh-eval-hub-rhel9, rhoai/odh-feast-operator-rhel9, rhoai/odh-feature-server-rhel9, rhoai/odh-fms-guardrails-orchestrator-rhel9, rhoai/odh-guardrails-detector-huggingface-runtime-rhel9, rhoai/odh-kf-notebook-controller-rhel9, rhoai/odh-kserve-agent-rhel9, rhoai/odh-kserve-autogluon-server-rhel9, rhoai/odh-kserve-controller-rhel9, rhoai/odh-kserve-llmisvc-controller-rhel9, rhoai/odh-kserve-router-rhel9, rhoai/odh-kserve-storage-initializer-rhel9, rhoai/odh-kube-auth-proxy-rhel9, rhoai/odh-kuberay-operator-controller-rhel9, rhoai/odh-llama-stack-core-rhel9, rhoai/odh-llama-stack-k8s-operator-rhel9 und 77 weitere
Weitere betroffene Pakete (4)
CVEhuggingface/diffuserskein Fix bekanntCVE-2026-44513
NVDhuggingface:diffusers0.38.0CVE-2026-44513
PyPIdiffusers0.38.0GHSA-98h9-4798-4q5v
PyPIdiffusers0.38.0PYSEC-2026-40

Empfohlene Prüfung

  1. Feststellen, ob und in welcher Version die betroffenen Pakete in Ihren Systemen, Images und Abhängigkeiten vorkommen.
  2. Wo eine Fix-Version genannt ist: aktualisieren. Wo nicht: Hersteller-Advisory und Referenzen auf Workarounds prüfen.
  3. Erreichbarkeit beachten: Der Angriffsweg (Netzwerk · ohne Login · Nutzerinteraktion) ist aus dem CVSS-Vektor abgeleitet.

Diese Seite sagt nichts darüber, ob Ihre Systeme betroffen sind. Das klärt erst eine Prüfung Ihrer Versionen.