cve.bz

CVE-2026-45804 huggingface diffusers

7.5 highExploit referenceEPSS 0.4%Fix available

High (7.5) in huggingface diffusers. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in diffusers 0.38.0.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 32nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-07-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-45804 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-45804?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-45804?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-45804 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
huggingface:diffusersbefore 0.38.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7wx4-6vff-v64pPyPIdiffusers<0.38.00.38.0
PYSEC-2026-2446PyPIdiffusers<0.38.00.38.0

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Important flaw in Diffusers, as used in Red Hat AI Inference Server, Red Hat OpenShift AI, and Red Hat Enterprise Linux AI, allows for arbitrary code execution. A remote attacker could exploit this by convincing a user to load a specially crafted model from a malicious Hub repository, bypassing the `trust_remote_code` safeguard. This could lead to a complete compromise of the system where the model is loaded.

ProductPackageStateAdvisory
Red Hat AI Inference Server 3.4rhaii/vllm-cpu-rhel9:1789681128Fixed 2026-09-21RHSA-2026:69466
Red Hat AI Inference Server 3.4rhaii/vllm-cuda-rhel9:1789681126Fixed 2026-09-21RHSA-2026:69467
Red Hat AI Inference Server 3.4rhaii/vllm-cpu-rhel9:1790075793Fixed 2026-09-23RHSA-2026:70965
Red Hat AI Inference Server 3.4rhaii/vllm-cuda-rhel9:1790090131Fixed 2026-09-23RHSA-2026:70979
Red Hat Enterprise Linux AI 3.4rhelai3/disk-image-cuda-rhel9:1790957417Fixed 2026-10-05RHSA-2026:76149
Red Hat Enterprise Linux AI 3.4rhelai3/bootc-aws-cuda-rhel9:1790881122Fixed 2026-10-05RHSA-2026:76150
Red Hat Enterprise Linux AI 3.4rhelai3/bootc-azure-cuda-rhel9:1790881120Fixed 2026-10-05RHSA-2026:76150
Red Hat Enterprise Linux AI 3.4rhelai3/bootc-cuda-rhel9:1790868254Fixed 2026-10-05RHSA-2026:76150
Red Hat Enterprise Linux AI 3.4rhelai3/bootc-gcp-cuda-rhel9:1790881123Fixed 2026-10-05RHSA-2026:76150
Red Hat OpenShift AI 3.4rhoai/odh-th06-cuda130-torch210-py312-rhel9:1787077779Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-th06-rocm64-torch291-py312-rhel9:1787076481Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-training-cuda128-torch29-py312-rhel9:1786611803Fixed 2026-08-27RHSA-2026:60520
Red Hat OpenShift AI 3.4rhoai/odh-training-rocm64-torch29-py312-rhel9:1786611435Fixed 2026-08-27RHSA-2026:60520
Red Hat AI Inference Serverrhaiis/vllm-rocm-rhel9Not affected
Red Hat AI Inference Serverrhaiis/vllm-tpu-rhel9Will not fix
Red Hat OpenShift AI (RHOAI)rhoai/odh-openvino-model-server-rhel9Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cuda130-torch291-py312-rhel9Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-45804.

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON