Advisory record · GHSA-98h9-4798-4q5v

Diffusers has a `trust_remote_code` bypass via `custom_pipeline` and local custom components

CVSS 8.8 HighEPSS 0.011 · 65th percentile

Published by the GitHub Advisory Database at 7 May 2026, 05:31 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
diffusersPyPI<0.38.00.38.0
Identifiers
GHSA-98h9-4798-4q5v · CVE-2026-44513 · PYSEC-2026-40
Weakness (CWE)
CWE-94 · CWE-358
Published
7 May 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Diffusers versions before 0.38.0 contain a bypass of the trust_remote_code check in DiffusionPipeline.from_pretrained, which can run remote code even when trust_remote_code is False or omitted. An attacker who can get a user to load a crafted custom pipeline, from a different Hub repository or from a local snapshot with custom component files, can execute arbitrary code on that user's machine. Upgrade to diffusers 0.38.0 or later. Until then, load only audited sources and do not use custom_pipeline pointing to a repository other than the primary one.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.8 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.011, the 65th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:11 UTC First seen by agentprime
  2. 31 Oct 2026, 14:11 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.