Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
huggingface diffusers
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

huggingface diffusers是huggingface的机器学习工具。 huggingface diffusers 0.38.0之前版本存在竞争条件问题漏洞,该漏洞源于DiffusionPipeline.from_pretrained流程可以绕过trust_remote_code防护,因为download()在验证model_index.json和自定义pipeline代码后,从可能变化的缓存文件夹加载,允许具有自定义.py pipeline代码的Hub仓库通过自定义pipeline流程执行,

CVSS 7.5 · High EPSS 0.37% · P29

Affected Version Matrix 1

VendorProduct Version RangeStatus
huggingface diffusers < 0.38.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-45804

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Diffusers: TOCTOU Trust Remote Code Bypass
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
检查时间与使用时间(TOCTOU)的竞争条件
Source: CVE Program / CVE List V5
Vulnerability Title
huggingface diffusers 竞争条件问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
huggingface diffusers是huggingface的机器学习工具。 huggingface diffusers 0.38.0之前版本存在竞争条件问题漏洞,该漏洞源于DiffusionPipeline.from_pretrained流程可以绕过trust_remote_code防护,因为download()在验证model_index.json和自定义pipeline代码后,从可能变化的缓存文件夹加载,允许具有自定义.py pipeline代码的Hub仓库通过自定义pipeline流程执行,
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
huggingface diffusers < 0.38.0 -

II. Public POCs for CVE-2026-45804

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 6937 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-45804

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-45804 (2)

Vendor Advisories for CVE-2026-45804 (1)

Other References for CVE-2026-45804 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-45804

No comments yet


Leave a comment