7.5
HIGH CVSS 3.1
CVE-2026-45804
Diffusers: TOCTOU Trust Remote Code Bypass
Description

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.

INFO

Published Date :

July 15, 2026, 5:16 p.m.

Last Modified :

July 15, 2026, 8:52 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-45804 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Huggingface diffusers
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 HIGH [email protected]
Solution
Update Diffusers to 0.38.0 to fix remote code execution vulnerability.
  • Update Diffusers library to version 0.38.0.
  • Verify the downloaded model code is trusted.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-45804 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-45804 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-45804 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-45804 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jul. 15, 2026

    Action Type Old Value New Value
    Added Reference https://github.com/huggingface/diffusers/issues/13446
    Added Reference https://github.com/huggingface/diffusers/security/advisories/GHSA-7wx4-6vff-v64p
    Added SSVC {'id': 'CVE-2026-45804', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-07-15T17:27:27.543160Z'}
  • New CVE Received by [email protected]

    Jul. 15, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'huggingface', 'product': 'diffusers', 'versions': [{'status': 'affected', 'version': '< 0.38.0'}]}]
    Added Description 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.
    Added CVSS V3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
    Added CWE CWE-367
    Added Reference https://github.com/huggingface/diffusers/commit/a37f6f8394ac2a7ee8360c3abea811efe54512b1
    Added Reference https://github.com/huggingface/diffusers/issues/13446
    Added Reference https://github.com/huggingface/diffusers/pull/13448
    Added Reference https://github.com/huggingface/diffusers/releases/tag/v0.38.0
    Added Reference https://github.com/huggingface/diffusers/security/advisories/GHSA-7wx4-6vff-v64p
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.