Bypass Vulnerability in Hugging Face Diffusers Library
CVE-2026-45804

7.5HIGH

Key Information:

Status
Vendor
CVE Published:
15 July 2026

What is CVE-2026-45804?

The Hugging Face Diffusers library prior to version 0.38.0 contains a vulnerability where the DiffusionPipeline.from_pretrained method can bypass the trust_remote_code safeguard. This occurs because the download() function only validates model_index.json and custom pipeline code before loading from a potentially modifiable cached directory. As a result, unauthorized code from a Hub repository can be executed through a custom pipeline flow without requiring explicit parameters. This issue has been addressed in version 0.38.0.

Affected Version(s)

diffusers < 0.38.0

References

CVSS V3.1

Score:
7.5
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
Required
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.