Skip to main content
← All vulnerabilities
CVE-2026-45804GHSA-7WX4-6VFF-V64PPYSEC-2026-2446

Diffusers: TOCTOU Trust Remote Code Bypass

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.38.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • huggingface diffusers

    fixed in 0.38.0

  • diffusersPyPI

    fixed in 0.38.0

References 5

GitHub · huggingface/diffusers