---
title: "CVE-2026-70659: stable-diffusion.cpp - Out of Bounds Read/Write"
description: "stable-diffusion.cpp master-742-1a13107 to master-763-4fcc6fe contains a heap buffer overflow caused by improper resizing of reused vectors in IMatrixCollector::load_imatrix, letting attackers cause heap corruption or crash via crafted .imatrix files, exploit requires loading a malicious .imatrix file."
url: https://panop.io/threat-heartbeat/CVE-2026-70659/
---

# CVE-2026-70659 stable-diffusion.cpp - Out of Bounds Read/Write

stable-diffusion.cpp master-742-1a13107 to master-763-4fcc6fe contains a heap buffer overflow caused by improper resizing of reused vectors in IMatrixCollector::load\_imatrix, letting attackers cause heap corruption or crash via crafted .imatrix files, exploit requires loading a malicious .imatrix file.

CVSS base score 7.8 /10

High

CISA KEV

Not listed

Public exploit

None known

Authentication

Not required

EPSS

0.13% chance of exploitation in 30 days

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-70659)

## Details

Type

Out of Bounds Read/Write

Impact

Denial Of Service, Remote Code Execution

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Published

5 November 2026

Updated

7 November 2026

Weakness

[CWE-787](https://cwe.mitre.org/data/definitions/787.html)

## Vendor fix

Update to master-763-4fcc6fe or later.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-70659](https://nvd.nist.gov/vuln/detail/CVE-2026-70659)
- [https://github.com/leejet/stable-diffusion.cpp/commit/4fcc6fef10c6f686801c6e257b22cd6a3deb906b](https://github.com/leejet/stable-diffusion.cpp/commit/4fcc6fef10c6f686801c6e257b22cd6a3deb906b)
- [https://github.com/leejet/stable-diffusion.cpp/pull/1750](https://github.com/leejet/stable-diffusion.cpp/pull/1750)
- [https://github.com/leejet/stable-diffusion.cpp/releases/tag/master-763-4fcc6fe](https://github.com/leejet/stable-diffusion.cpp/releases/tag/master-763-4fcc6fe)
- [https://github.com/leejet/stable-diffusion.cpp/security/advisories/GHSA-6q7q-2v9c-x8m7](https://github.com/leejet/stable-diffusion.cpp/security/advisories/GHSA-6q7q-2v9c-x8m7)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
