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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-44827— Diffusers: None.py Trust Remote Code Bypass

Quick assessment

Affected
huggingface diffusers
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

diffusers是Hugging Face开源的一个生成图像、音频和3D分子结构的扩散模型库。 Diffusers 0.38.0之前版本存在代码注入漏洞,该漏洞源于custom_pipeline参数处理不当,可能导致远程代码执行。

CVSS 8.8 · High EPSS 0.56% · P44

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-44827

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: None.py 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 0.37.0 allows remote code execution without the trust_remote_code=True safeguard when loading pipelines from Hugging Face Hub repositories. The _resolve_custom_pipeline_and_cls function in pipeline_loading_utils.py performs string interpolation on the custom_pipeline parameter using f"{custom_pipeline}.py". When custom_pipeline is not supplied by the user, it defaults to None, which Python interpolates as the literal string "None.py". If an attacker publishes a Hub repository containing a file named None.py with a class that subclasses DiffusionPipeline, the file is automatically downloaded and executed during a standard DiffusionPipeline.from_pretrained() call with no additional keyword arguments. The trust_remote_code check in DiffusionPipeline.download() is bypassed because it evaluates custom_pipeline is not None as False (since the kwarg was never supplied), while the downstream code path that actually loads the module resolves the None value into a valid filename. An attacker can achieve silent arbitrary code execution by publishing a malicious model repository with a None.py file and a standard-looking model_index.json that references a legitimate pipeline class name, requiring only that a victim calls from_pretrained on the repository. This vulnerability is fixed in 0.38.0.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
diffusers 代码注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
diffusers是Hugging Face开源的一个生成图像、音频和3D分子结构的扩散模型库。 Diffusers 0.38.0之前版本存在代码注入漏洞,该漏洞源于custom_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-44827

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-44827

登录查看更多情报信息。

Vendor Advisories for CVE-2026-44827 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-44827

No comments yet


Leave a comment