{"id":"CVE-2026-70660","published":"2026-11-05T15:27:53Z","modified":"2026-11-09T17:13:40Z","title":"stable-diffusion.cpp: Out-of-bounds read in safetensors loader: unvalidated data_offsets allow a tensor's byte range…","vendor":"leejet","product":"stable-diffusion.cpp","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00244,"percentile":0.15773,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://github.com/leejet/stable-diffusion.cpp/security/advisories/GHSA-v2m4-h57v-fr6w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/leejet/stable-diffusion.cpp/pull/1754","tags":["x_refsource_MISC"]},{"url":"https://github.com/leejet/stable-diffusion.cpp/commit/e22272ee631b742dab4440c18eb8fcafb0689402","tags":["x_refsource_MISC"]},{"url":"https://github.com/leejet/stable-diffusion.cpp/releases/tag/master-764-e22272e","tags":["x_refsource_MISC"]}],"priority":{"score":8.0,"factors":[{"name":"EPSS percentile","points":3.15},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"leejet","affectedVersions":[{"vendor":"leejet","product":"stable-diffusion.cpp","versions":["< master-764-e22272e"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-09T17:13:04.609428Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-117547","exploited":false,"provenance":"source"}}