Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. diffusers
  4. ›
  5. CVE-2026-45804

CVE-2026-45804: Diffusers: TOCTOU Trust Remote Code Bypass

May 20, 2026

The vulnerability is a silent RCE - it allows arbitrary code to be loaded through the custom pipeline flow from a Hub repo, with no custom_pipeline or trust_remote_code kwargs. The from_pretrained call succeeds and returns a fully functional pipeline.

References

  • github.com/advisories/GHSA-7wx4-6vff-v64p
  • github.com/huggingface/diffusers/security/advisories/GHSA-7wx4-6vff-v64p
  • nvd.nist.gov/vuln/detail/CVE-2026-45804

Code Behaviors & Features

Detect and mitigate CVE-2026-45804 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.38.0

Fixed versions

  • 0.38.0

Solution

Upgrade to version 0.38.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition

Source file

pypi/diffusers/CVE-2026-45804.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 22 May 2026 00:18:25 +0000.