[ CVE-2026-70660 · Published 5 Nov 2026 ]

Vulnerability in leejet stable-diffusion.cpp

CVSS 6.9 EPSS <1% Fixed version listed

[ Why it matters ]Priority signals

  • Public proof-of-concept exploit exists (CISA SSVC)

[ Description ]Official 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. Prior to master-764-e22272e, the safetensors loader in src/model_io/safetensors_io.cpp trusts each tensor's data_offsets after checking only that nbytes equals end - begin. A crafted .safetensors file can declare a byte range beyond the file's data section, causing src/model_loader.cpp to consume an attacker-chosen length from an unchecked mapped-file offset. Loading the model can read adjacent process memory into tensor buffers or crash the process. This issue is fixed in master-764-e22272e.

[ Fixes ]How to fix it

Fixed versions

  • leejet stable-diffusion.cpp: upgrade to master-764-e22272e or laterEarlier versions are listed as affected

From the affected-version ranges in the CVE record. Check the vendor's advisory for the exact release for your platform or branch.

Vendor advisories and patches