CVE-2026-70660
Last modified
CVE-2026-70660 is a medium-severity vulnerability rated 6.9/10 on the CVSS scale. 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.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| leejet | stable-diffusion.cpp | < master-764-e22272e |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-70660?
How severe is CVE-2026-70660?
How do I fix CVE-2026-70660?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-70654libvips is a fast image processing library with low memory n…5.8
- CVE-2026-70656Checkmate is an open-source, self-hosted tool designed to tr…4.9
- CVE-2026-70657Copyparty is a portable file server. Prior to 1.20.17, copyp…4.3
- CVE-2026-70658Pay is a payments engine for Ruby on Rails 6.0 and higher. P…7.4
- CVE-2026-70659stable-diffusion.cpp is a pure C/C++ library for running dif…7.8
- CVE-2026-7066A vulnerability was found in choieastsea simple-openstack-mc…7.3
- CVE-2026-70665Doorkeeper OpenID Connect implements an OpenID Connect authe…4.2
- CVE-2026-70666Lemur manages TLS certificate creation. Prior to 1.9.3, an a…7.4
- CVE-2026-70667Lemur manages TLS certificate creation. Prior to 1.9.3, _val…6.3
- CVE-2026-70668Vulnerability in the Oracle Reports Developer product of Ora…9.1
- CVE-2026-70669Vulnerability in the Oracle Reports Developer product of Ora…9.8
- CVE-2026-7067A vulnerability was determined in D-Link DIR-822 A_101. The …7.3
Are you affected by CVE-2026-70660?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
