Skip to content
VulniPulse
High7.5Red Hat Linux

High [CVE-2026-45804] Arbitrary code execution due to trust_remote_code guard bypass

This high-severity Red Hat Linux advisory covers CVE-2026-45804 affecting Red Hat OpenShift AI 3.4, Red Hat AI Inference Server, Red Hat Enterprise Linux AI (RHEL AI) 3.

CVE-2026-45804 Published Jul 15, 2026Updated by vendor Jul 15, 2026
Affected products & platforms
Red Hat LinuxUnclassified
Open vendor advisory

Android app · Google Play

Monitor future Red Hat Linux CVEs from your phone.

Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 32 official vendor sources and 160+ reviewed platform categories.

Matching phone alertsOptional email delivery

Summary

Diffusers is the a library for pretrained diffusion models.

Prior to 0.38.0, Diffusers' DiffusionPipeline.from_pretrained flow can bypass the trust_remote_code guard because download() validates model_index.json and custom pipeline code before later loading from a cached folder that can change, allowing a Hub repository with custom.py pipeline code to execute through the custom pipeline flow without passing custom_pipeline or trust_remote_code=True.

This issue is fixed in version 0.38.0. 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.

This Important flaw in Diffusers, as used in Red Hat AI Inference Server, Red Hat OpenShift AI, and Red Hat Enterprise Linux AI, allows for arbitrary code execution. A remote attacker could exploit this by convincing a user to load a specially crafted model from a malicious Hub repository, bypassing the `trust_remote_code` safeguard.

This could lead to a complete compromise of the system where the model is loaded.

Affected versions
  • < 0.38.0

Official advisory · high-confidence parse· fetched 5 days ago·verify at source

Fixed versions
  • 0.38.0
  • rhoai/odh-th06-cuda130-torch210-py312-rhel9:1787077779
  • rhoai/odh-th06-rocm64-torch291-py312-rhel9:1787076481
  • rhoai/odh-training-cuda128-torch29-py312-rhel9:1786611803
  • rhoai/odh-training-rocm64-torch29-py312-rhel9:1786611435
  • RHSA-2026:60520

Official advisory · high-confidence parse· fetched 5 days ago·verify at source

Mitigation

Upgrade to a fixed release: 0.38.0, rhoai/odh-th06-cuda130-torch210-py312-rhel9:1787077779, rhoai/odh-th06-rocm64-torch291-py312-rhel9:1787076481, rhoai/odh-training-cuda128-torch29-py312-rhel9:1786611803, rhoai/odh-training-rocm64-torch29-py312-rhel9:1786611435, RHSA-2026:60520. That is the remediation for this advisory.

The vendor advisory may list additional interim mitigations or workarounds not captured here — review it before change work.

Official advisory · high-confidence parse· fetched 5 days ago·verify at source

Discussion(0)

No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.

Sign in to join the discussion.