{"id":80652,"date":"2026-06-16T23:46:44","date_gmt":"2026-06-16T20:16:44","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-47750-stable-diffusion-cpp-heap-buffer-overflow-in-global-opcode-parsing-for-pytorch-checkpoint-files\/"},"modified":"2026-06-16T23:46:44","modified_gmt":"2026-06-16T20:16:44","slug":"cve-2026-47750-stable-diffusion-cpp-heap-buffer-overflow-in-global-opcode-parsing-for-pytorch-checkpoint-files","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-47750-stable-diffusion-cpp-heap-buffer-overflow-in-global-opcode-parsing-for-pytorch-checkpoint-files\/","title":{"rendered":"CVE-2026-47750 &#8211; stable-diffusion.cpp: Heap buffer overflow in GLOBAL opcode parsing for PyTorch checkpoint files"},"content":{"rendered":"<p>CVE ID :CVE-2026-47750<\/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 GLOBAL opcode handler. The issue was caused by missing validation when searching for newline-delimited fields. A crafted .ckpt file without the expected newline could cause the parser to use -1 as a copy length, resulting in immediate heap corruption. The attack requires the victim or application to load a .ckpt file from an untrusted source, such as a downloaded model from a model sharing site. The 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 following these instructions: do not load .ckpt checkpoint files from untrusted sources, and prefer 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-47750 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 GLOBAL &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-80652","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/80652","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=80652"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/80652\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=80652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=80652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=80652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}