PT-2026-49829 · Unknown · Stable-Diffusion.Cpp
CVSS v3.1
7.8
High
| Vector | AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
stable-diffusion.cpp versions prior to master-584-0a7ae07
Description
The pickle .ckpt parser in src/model.cpp contains a heap buffer overflow in the BINUNICODE opcode handler. This occurs due to sign confusion on the opcode length field, where a crafted .ckpt file can trigger a
memcpy() function with an excessively large length derived from a negative signed value, leading to immediate heap corruption.Recommendations
Update to version master-584-0a7ae07.
As a temporary workaround, load .ckpt checkpoint files only from trusted sources and prefer safer formats such as .safetensors.
Exploit
Fix
Memory Corruption
Heap Based Buffer Overflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Stable-Diffusion.Cpp