CVE-2026-70659
Last modified
CVE-2026-70659 is a high-severity vulnerability rated 7.8/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. From master-742-1a13107 until master-763-4fcc6fe, IMatrixCollector::load_imatrix in src/runtime/imatrix.cpp reuses the values and counts vectors for entries with the same tensor name but resizes them only when they are empty.
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. From master-742-1a13107 until master-763-4fcc6fe, IMatrixCollector::load_imatrix in src/runtime/imatrix.cpp reuses the values and counts vectors for entries with the same tensor name but resizes them only when they are empty. An untrusted .imatrix file can provide a small nval for the first entry and a larger nval for a second entry with the same name, causing the accumulation loop to write attacker-controlled floating-point and integer values beyond both heap buffers. Loading the file through the --imat-in conversion path can corrupt the heap or crash the process before a model is required. This issue is fixed in master-763-4fcc6fe.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| leejet | stable-diffusion.cpp | < master-763-4fcc6fe |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-70659?
How severe is CVE-2026-70659?
How do I fix CVE-2026-70659?
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-70652libvips is a fast image processing library with low memory n…2
- CVE-2026-70653libvips is a fast image processing library with low memory n…4.8
- 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-7066A vulnerability was found in choieastsea simple-openstack-mc…7.3
- CVE-2026-70660stable-diffusion.cpp is a pure C/C++ library for running dif…6.9
- 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
Are you affected by CVE-2026-70659?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
