Vulnerability

CVE-2026-70660

mediumCVSS 4.0 6.9Published 5 Nov 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /leejet/stable-diffusion.cpp/commit/e22272ee631b742dab4440c…
  • github.com /leejet/stable-diffusion.cpp/pull/1754
  • github.com /leejet/stable-diffusion.cpp/releases/tag/master-764-e22272e
  • github.com /leejet/stable-diffusion.cpp/security/advisories/GHSA-v2m4-…

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning