HighVulnerability
CVE-2026-70659: stable-diffusion.cpp heap overflow when loading imatrix files
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-70659
- Published
- Record updated
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.2%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .
Summary
stable-diffusion.cpp, a pure C/C++ library for diffusion model inference, has a heap overflow in IMatrixCollector::load_imatrix (src/runtime/imatrix.cpp) from master-742-1a13107 through master-763-4fcc6fe. Reusing the values and counts vectors for same-named tensor entries lets a crafted untrusted .imatrix file write attacker-controlled values past both heap buffers. Loading it through the --imat-in conversion path can corrupt the heap or crash the process before any model is needed.
Mitigation
Fixed in master-763-4fcc6fe.
Related items
- MediumCVE-2026-143967: Wise Chat with AI unauthenticated stored cross-site scriptingSimilar attack, NVD/CVE Database
- MediumCVE-2026-135917: Apache Camel A2A component confused deputy via shared message headersSimilar attack, NVD/CVE Database
- MediumCVE-2026-107489: Improper Authentication vulnerability in Apache Camel A2A component. This issue affects Apache Camel: from 4.21.0…Similar attack, NVD/CVE Database
- MediumNSA urges immediate post-quantum shift after AI labs report cryptography breakthroughsSimilar attack, CSO Online
- LowPerplexity caught an AI attacker casing its cloudSimilar attack, CSO Online