PT-2026-137535
CVE-2026-70660
·
Published
2026-11-05
·
Updated
2026-11-05
Description by
CVSS 4.0
6.9
MediumMetricsAV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Name of the Vulnerable Software and Affected Versions
stable-diffusion.cpp versions prior to master-764-e22272e
Description
The safetensors loader in src/model io/safetensors io.cpp fails to properly validate
data offsets for tensors, verifying only that nbytes equals the difference between the end and begin offsets. A specially crafted .safetensors file can specify a byte range that extends beyond the file's data section. This causes src/model loader.cpp to read an attacker-controlled length from an unchecked mapped-file offset, which may lead to the disclosure of adjacent process memory into tensor buffers or cause the process to crash.Recommendations
Update to version master-764-e22272e.
Found an issue in the description? Have something to add? Feel free to write us 👾