---
id: CVE-2026-45804
title: >-
  diffusers: Diffusers: Arbitrary code execution due to trust_remote_code guard
  bypass (CVE-2026-45804)
summary: >-
  A flaw was found in Diffusers, a library for pretrained diffusion models. A
  remote attacker could exploit this vulnerability by crafting a malicious Hub
  repository with custom Python pipeline code. The
  `DiffusionPipeline.from_pretrained` f…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'
cvssSource: vendor
cwe: CWE-94
vendor: Red Hat
product: Red Hat AI Inference Server 3.4
affected:
  - ai_inference_server
  - enterprise_linux_ai_rhel_ai 3
  - ai_inference_server 3.4
  - openshift_ai 3.4
patched:
  - ai_inference_server 3.4
  - openshift_ai 3.4
published: '2026-07-15'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T05:56:42+00:00'
source: CSAF
sourceUrl: 'https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-45804.json'
references:
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-45804.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-45804'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2501024'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-45804'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-45804'
  - url: >-
      https://github.com/huggingface/diffusers/commit/a37f6f8394ac2a7ee8360c3abea811efe54512b1
  - url: 'https://github.com/huggingface/diffusers/issues/13446'
  - url: 'https://github.com/huggingface/diffusers/pull/13448'
  - url: 'https://github.com/huggingface/diffusers/releases/tag/v0.38.0'
  - url: >-
      https://github.com/huggingface/diffusers/security/advisories/GHSA-7wx4-6vff-v64p
  - url: 'https://access.redhat.com/errata/RHSA-2026:69466'
  - url: 'https://access.redhat.com/errata/RHSA-2026:70965'
  - url: 'https://access.redhat.com/errata/RHSA-2026:70979'
  - url: 'https://access.redhat.com/errata/RHSA-2026:69467'
  - url: 'https://access.redhat.com/errata/RHSA-2026:60520'
  - url: 'https://github.com/huggingface/diffusers'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/diffusers/PYSEC-2026-2446.yaml
tags:
  - csaf
  - vex
  - red-hat
  - osv
  - pip
epss: 0.00376
epssPercentile: 0.31549
aliases:
  - GHSA-7wx4-6vff-v64p
  - PYSEC-2026-2446
ecosystem: pip
ingestedAt: '2026-07-13T18:57:54.749Z'
---

## Overview

A flaw was found in Diffusers, a library for pretrained diffusion models. A remote attacker could exploit this vulnerability by crafting a malicious Hub repository with custom Python pipeline code. The `DiffusionPipeline.from_pretrained` flow can bypass the `trust_remote_code` security mechanism, allowing the execution of arbitrary code on the system when a user interacts with the malicious repository. This could lead to high impact on confidentiality, integrity, and availability of the affected system.

## Vendor advisories

- **RHSA-2026:69466** · Red Hat · fixed in: Red Hat AI Inference Server 3.4 · released 2026-09-21 · [advisory](https://access.redhat.com/errata/RHSA-2026:69466)
- **RHSA-2026:70965** · Red Hat · fixed in: Red Hat AI Inference Server 3.4 · released 2026-09-23 · [advisory](https://access.redhat.com/errata/RHSA-2026:70965)
- **RHSA-2026:70979** · Red Hat · fixed in: Red Hat AI Inference Server 3.4 · released 2026-09-23 · [advisory](https://access.redhat.com/errata/RHSA-2026:70979)
- **RHSA-2026:69467** · Red Hat · fixed in: Red Hat AI Inference Server 3.4 · released 2026-09-21 · [advisory](https://access.redhat.com/errata/RHSA-2026:69467)
- **RHSA-2026:60520** · Red Hat · fixed in: Red Hat OpenShift AI 3.4 · released 2026-08-27 · [advisory](https://access.redhat.com/errata/RHSA-2026:60520)
- **Red Hat VEX** · Important · affected: Red Hat AI Inference Server, Red Hat Enterprise Linux AI (RHEL AI) 3 · no fix planned: Red Hat AI Inference Server, Red Hat Enterprise Linux AI (RHEL AI) 3 · updated 2026-09-24 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-45804.json)

**diffusers: Diffusers: Arbitrary code execution due to trust_remote_code guard bypass** — rated Important by Red Hat. Released 2026-07-15, updated 2026-09-24.

Affected:

- Red Hat AI Inference Server
- Red Hat Enterprise Linux AI (RHEL AI) 3

Fixed:

- Red Hat AI Inference Server 3.4
- Red Hat OpenShift AI 3.4

No fix planned:

- Red Hat AI Inference Server
- Red Hat Enterprise Linux AI (RHEL AI) 3

Not affected:

- Red Hat OpenShift AI 3.4
- Red Hat AI Inference Server
- Red Hat OpenShift AI (RHOAI)

## Remediation

For more information visit https://access.redhat.com/errata/RHSA-2026:69466 https://access.redhat.com/errata/RHSA-2026:69466
For more information visit https://access.redhat.com/errata/RHSA-2026:70965 https://access.redhat.com/errata/RHSA-2026:70965
For more information visit https://access.redhat.com/errata/RHSA-2026:70979 https://access.redhat.com/errata/RHSA-2026:70979

## Package advisory (CVE-2026-45804)

Affected packages:

- `diffusers < 0.38.0`

Patched in:

- `diffusers 0.38.0`

Source: https://osv.dev/vulnerability/GHSA-7wx4-6vff-v64p
