Skip to content
HighVulnerability

CVE-2026-47750: stable-diffusion.cpp heap buffer overflow in .ckpt pickle parser

Identifier
CVE-2026-47750
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.

Summary

CVE-2026-47750 affects stable-diffusion.cpp, a pure C/C++ library for running diffusion models, in versions prior to master-584-0a7ae07. The pickle .ckpt parser in src/model.cpp has a heap buffer overflow in its GLOBAL opcode handler, caused by missing validation when searching for newline-delimited fields. A crafted .ckpt file lacking the expected newline can make the parser use -1 as a copy length, causing immediate heap corruption; exploitation requires loading a .ckpt file from an untrusted source.

Mitigation

Fixed in master-584-0a7ae07. If developers cannot update immediately, do not load .ckpt checkpoint files from untrusted sources, prefer trusted model sources, and use safer formats such as .safetensors where possible.