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.
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.
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.
- < 0.38.0
Official advisory · high-confidence parse· fetched 5 days ago·verify at source
- 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.