PatchSiren cyber security CVE debrief
CVE-2026-47749 leejet CVE debrief
CVE-2026-47749 is a high-severity vulnerability in stable-diffusion.cpp, a C/C++ library for running diffusion model inference. The vulnerability is caused by a heap buffer overflow in the SHORT_BINUNICODE parsing for PyTorch checkpoint files. This issue was resolved in version master-584-0a7ae07. Affected applications loading untrusted .ckpt model files could be vulnerable to heap corruption, potentially leading to process crashes or code execution.
- Vendor
- leejet
- Product
- stable-diffusion.cpp
- CVSS
- HIGH 7.8
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-06-16
- Original CVE updated
- 2026-06-25
- Advisory published
- 2026-06-16
- Advisory updated
- 2026-06-25
Who should care
Developers and users of applications that utilize stable-diffusion.cpp to load .ckpt model files from untrusted sources should be aware of this vulnerability. This includes any application that uses stable-diffusion.cpp for inference with models obtained from untrusted or third-party sources.
Technical summary
The pickle .ckpt parser in src/model.cpp contained a heap buffer overflow vulnerability in the SHORT_BINUNICODE opcode handler. The issue was caused by sign confusion on the opcode length field. A crafted .ckpt file could trigger memcpy with a very large length derived from a negative signed value, causing immediate heap corruption.
Defensive priority
High
Recommended defensive actions
- Update stable-diffusion.cpp to version master-584-0a7ae07 or later.
- Avoid loading .ckpt checkpoint files from untrusted sources.
- Consider using safer formats such as .safetensors where possible.
Evidence notes
The CVE-2026-47749 vulnerability has a CVSS score of 7.8 and is classified as HIGH severity. The vulnerability was published on 2026-06-16T19:16:55.867Z and modified on 2026-06-16T20:44:11.730Z.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-47749 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-47749
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-47749 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-47749
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/leejet/stable-diffusion.cpp/commit/0a7ae07f948eff4611968a65a22bd7c7031ad74f
-
Source reference
Unverified legacy reference
URL: https://github.com/leejet/stable-diffusion.cpp/pull/1443
-
Source reference
Unverified legacy reference
URL: https://github.com/leejet/stable-diffusion.cpp/security/advisories/GHSA-2c29-5hxg-fv9g
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.