Skip to content
HighVulnerability

CVE-2026-47749: stable-diffusion.cpp heap buffer overflow in SHORT_BINUNICODE parsing

Identifier
CVE-2026-47749
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

CVE-2026-47749 affects stable-diffusion.cpp releases prior to master-584-0a7ae07. A sign confusion on the opcode length field in the SHORT_BINUNICODE handler of the pickle .ckpt parser in src/model.cpp allows a heap buffer overflow when a crafted .ckpt file triggers memcpy with a very large length. This can crash the process and may potentially enable code execution, depending on heap layout, and requires the victim or application to load a .ckpt file from an untrusted source.

Mitigation

The issue has been resolved in version master-584-0a7ae07. If developers cannot update immediately, avoid loading .ckpt checkpoint files from untrusted sources, use trusted model sources, and prefer safer formats such as .safetensors where possible.