PT-2026-49750 · Unknown · Stable-Diffusion.Cpp

·

CVE-2026-47749

·

Published

2026-06-16

·

Updated

2026-06-25

CVSS v3.1

7.8

High

VectorAV: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 A heap buffer overflow exists in the SHORT BINUNICODE parsing for PyTorch checkpoint files within the pickle .ckpt parser in src/model.cpp. The issue stems from 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. This leads to heap corruption, which may cause the process to crash or potentially allow for code execution depending on the heap layout. The issue occurs when an application loads a .ckpt file from an untrusted source.
Recommendations Update to version master-584-0a7ae07. Avoid loading .ckpt checkpoint files from untrusted sources and use safer formats such as .safetensors where possible.

Exploit

Fix

Memory Corruption

Heap Based Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-47749
GHSA-2C29-5HXG-FV9G

Affected Products

Stable-Diffusion.Cpp