CVE-2026-44513 Details
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 trust remote code execution vulnerability has been identified in the Hugging Face Diffusers library, specifically in versions prior to 0.38.0. The issue arises in the DiffusionPipeline.from_pretrained method, where the trust_remote_code parameter is not properly enforced. Despite users setting trust_remote_code to False or leaving it at the default, arbitrary remote code execution is still possible. This vulnerability has three variants, all stemming from the same root cause: the trust_remote_code check was implemented in the download method instead of at the dynamic module loading site. As a result, any code path that bypassed or short-circuited the download method also circumvented the security check.
Users should upgrade to Diffusers version 0.38.0, where this vulnerability has been fixed. If an immediate upgrade is not possible, only use the from_pretrained method with trusted sources and inspect local snapshots for unexpected Python files.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:60520 | redhat-SADP | |
| https://access.redhat.com/security/cve/CVE-2026-44513 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2477507 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-44513.json | redhat-SADP | |
| https://github.com/huggingface/diffusers/security/advisories/GHSA-98h9-4798-4q5v | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-358 | Improperly Implemented Security Check for Standard | redhat-SADP |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| huggingface diffusers | < 0.38.0 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 28, 2026 | CVE Modified | redhat-SADP |
| Aug 28, 2026 | CVE Modified | [email protected] |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| May 19, 2026 | Initial Analysis | [email protected] |
| May 14, 2026 | New CVE Received | [email protected] |