{"id":80653,"date":"2026-06-16T23:46:44","date_gmt":"2026-06-16T20:16:44","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-47747-stable-diffusion-cpp-has-a-heap-based-buffer-overflow\/"},"modified":"2026-06-16T23:46:44","modified_gmt":"2026-06-16T20:16:44","slug":"cve-2026-47747-stable-diffusion-cpp-has-a-heap-based-buffer-overflow","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-47747-stable-diffusion-cpp-has-a-heap-based-buffer-overflow\/","title":{"rendered":"CVE-2026-47747 &#8211; stable-diffusion.cpp has a  Heap-based Buffer Overflow"},"content":{"rendered":"<p>CVE ID :CVE-2026-47747<\/p>\n<p>  Published : June 16, 2026, 8:16 p.m. | 1\u00a0hour, 25\u00a0minutes ago<\/p>\n<p>  Description :stable-diffusion.cpp is a pure C\/C++ library for running diffusion model (Stable Diffusion, Flux, Wan, Qwen Image, Z-Image, and more) inference. In versions prior to master-584-0a7ae07, the pickle .ckpt parser in src\/model.cpp contained a heap buffer overflow vulnerability in the BINUNICODE opcode handler. The issue was caused by sign confusion on the opcode length field. A crafted .ckpt file could trigger memcpy with a very large length derived from a negative signed value, causing immediate heap corruption.<br \/>\nThe issue has been resolved in version master-584-0a7ae07. If developers are unable to immediately update their applications they can work around this issue by only loading .ckpt checkpoint files from trusted sources and preferring trusted model sources and safer formats such as .safetensors where possible.<\/p>\n<p>  Severity: 7.8 | HIGH<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-47747 Published : June 16, 2026, 8:16 p.m. | 1\u00a0hour, 25\u00a0minutes ago Description :stable-diffusion.cpp is a pure C\/C++ library for running diffusion model (Stable Diffusion, Flux, Wan, Qwen Image, Z-Image, and more) inference. In versions prior to master-584-0a7ae07, the pickle .ckpt parser in src\/model.cpp contained a heap buffer overflow vulnerability in the BINUNICODE &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-80653","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/80653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=80653"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/80653\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=80653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=80653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=80653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}