Heap Buffer Overflow in Stable Diffusion Library by Leejet
CVE-2026-47747
7.8HIGH
What is CVE-2026-47747?
The stable-diffusion.cpp library has a vulnerability that allows a crafted .ckpt file to cause a heap buffer overflow due to sign confusion in the opcode length field within the BINUNICODE handler. This can lead to heap corruption as a result of improper memory allocation during the parsing process. To mitigate the risks, it is advised to only load .ckpt files from trusted sources or use safer formats like .safetensors. An update addressing this issue has been released in version master-584-0a7ae07.
Affected Version(s)
stable-diffusion.cpp < master-584-0a7ae07
