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.
CVSS
No CVSS.
References
Configurations
No configuration.
History
09 Nov 2026, 18:17
| Type | Values Removed | Values Added |
|---|---|---|
| References | () https://github.com/leejet/stable-diffusion.cpp/security/advisories/GHSA-v2m4-h57v-fr6w - |
05 Nov 2026, 16:17
| Type | Values Removed | Values Added |
|---|---|---|
| New CVE |
Information
Published : 2026-11-05 16:17
Updated : 2026-11-12 22:18
NVD link : CVE-2026-70660
Mitre link : CVE-2026-70660
CVE.ORG link : CVE-2026-70660
JSON object : View
Products Affected
No product.
CWE
CWE-125
Out-of-bounds Read
