๐Ÿ” CVE Alert

CVE-2026-70660

UNKNOWN 0.0

stable-diffusion.cpp: Out-of-bounds read in safetensors loader: unvalidated data_offsets allow a tensor's byte range to extend past the end of the file

CVSS Score
0.0
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-125
Vendor leejet
Product stable-diffusion.cpp
Published Nov 5, 2026
Stay Ahead of the Next One

Get instant alerts for leejet stable-diffusion.cpp

Be the first to know when new unknown vulnerabilities affecting leejet stable-diffusion.cpp are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

Affected Versions

leejet / stable-diffusion.cpp
< master-764-e22272e

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/leejet/stable-diffusion.cpp/security/advisories/GHSA-v2m4-h57v-fr6w github.com: https://github.com/leejet/stable-diffusion.cpp/pull/1754 github.com: https://github.com/leejet/stable-diffusion.cpp/commit/e22272ee631b742dab4440c18eb8fcafb0689402 github.com: https://github.com/leejet/stable-diffusion.cpp/releases/tag/master-764-e22272e