CVE-2026-47750 Details
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.
A heap buffer overflow vulnerability has been identified in the pickle .ckpt parser of stable-diffusion.cpp, specifically in the GLOBAL opcode handler. This vulnerability exists in versions prior to master-584-0a7ae07. The issue arises from inadequate validation when searching for newline-delimited fields, allowing a crafted .ckpt file to cause the parser to use -1 as a copy length. This mismanagement leads to immediate heap corruption. The vulnerability can be exploited if the application loads a .ckpt file from an untrusted source, such as a downloaded model from a model sharing site.
Users are advised to upgrade to stable-diffusion.cpp version master-584-0a7ae07 or later. If an immediate upgrade is not possible, .ckpt files should not be loaded from untrusted sources, and trusted model sources and safer formats like .safetensors should be preferred.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 17, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/leejet/stable-diffusion.cpp/security/advisories/GHSA-v37x-jwp7-mcvc | CISA-ADP | ExploitMitigationVendor Advisory |
| https://github.com/leejet/stable-diffusion.cpp/commit/0a7ae07f948eff4611968a65a22bd7c7031ad74f | [email protected] | Patch |
| https://github.com/leejet/stable-diffusion.cpp/pull/1443 | [email protected] | Issue TrackingPatch |
| https://github.com/leejet/stable-diffusion.cpp/security/advisories/GHSA-v37x-jwp7-mcvc | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| leejet stable-diffusion.cpp | < master-584-0a7ae07 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 25, 2026 | Initial Analysis | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 16, 2026 | New CVE Received | [email protected] |