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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-47750— stable-diffusion.cpp: Heap buffer overflow in GLOBAL opcode parsing for PyTorch checkpoint files

Quick assessment

Affected
leejet stable-diffusion.cpp
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.

stable-diffusion.cpp是leejet个人开发者的一种基于C++的纯推理扩散模型实现。 leejet stable-diffusion.cpp存在缓冲区错误漏洞,该漏洞源于src/model.cpp中pickle .ckpt解析器在处理GLOBAL操作码时存在堆缓冲区溢出,由搜索换行符分隔字段时缺少验证导致,攻击者通过特制.ckpt文件可能造成堆损坏。

CVSS 7.8 · High EPSS 0.18% · P8

Possible ATT&CK Techniques 1 AI

T1203 · Exploitation for Client Execution

Affected Version Matrix 1

VendorProduct Version RangeStatus
leejet stable-diffusion.cpp < master-584-0a7ae07 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-47750

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
stable-diffusion.cpp: Heap buffer overflow in GLOBAL opcode parsing for PyTorch checkpoint files
Source: CVE Program / CVE List V5
Vulnerability Description
stable-diffusion.cpp is a pure C/C++ library for running diffusion model (Stable Diffusion, Flux, Wan, Qwen Image, Z-Image, and more) inference. In versions prior to master-584-0a7ae07, the pickle .ckpt parser in src/model.cpp contained a heap buffer overflow vulnerability in the GLOBAL opcode handler. The issue was caused by missing validation when searching for newline-delimited fields. A crafted .ckpt file without the expected newline could cause the parser to use -1 as a copy length, resulting in immediate heap corruption. The attack requires the victim or application to load a .ckpt file from an untrusted source, such as a downloaded model from a model sharing site. The issue has been resolved in version master-584-0a7ae07. If developers are unable to immediately update their applications they can work around this issue by following these instructions: do not load .ckpt checkpoint files from untrusted sources, and prefer trusted model sources and safer formats such as .safetensors where possible.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/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
leejet stable-diffusion.cpp 缓冲区错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
stable-diffusion.cpp是leejet个人开发者的一种基于C++的纯推理扩散模型实现。 leejet stable-diffusion.cpp存在缓冲区错误漏洞,该漏洞源于src/model.cpp中pickle .ckpt解析器在处理GLOBAL操作码时存在堆缓冲区溢出,由搜索换行符分隔字段时缺少验证导致,攻击者通过特制.ckpt文件可能造成堆损坏。
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
leejet stable-diffusion.cpp < master-584-0a7ae07 -

II. Public POCs for CVE-2026-47750

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 11028 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-47750

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

Patches & Fixes for CVE-2026-47750 (1)

Vendor Advisories for CVE-2026-47750 (1)

Same Patch Batch · leejet · 2026-06-16 · 4 CVEs total

CVE-2026-47749 7.8 HIGH stable-diffusion.cpp: Heap buffer overflow in SHORT_BINUNICODE parsing for PyTorch checkpo
CVE-2026-47747 7.8 HIGH stable-diffusion.cpp has a Heap-based Buffer Overflow
CVE-2026-47748 5.5 MEDIUM stable-diffusion.cpp: Out-of-bounds reads in PyTorch checkpoint pickle opcode parsing

IV. Related Vulnerabilities