Impact
The vulnerability involves an out‑of‑bounds write to heap buffers during the loading of an .imatrix file. When an attacker supplies an untrusted file containing duplicate tensor names with differing size values, the accumulation loop writes beyond the bounds of the values and counts vectors. This corruption can lead to arbitrary heap corruption or a process crash before the diffusion model is initialized.
Affected Systems
The issue exists in stable‑diffusion.cpp releases from commit master‑742‑1a13107 up to and including master‑763‑4fcc6fe. Users employing these builds are susceptible.
Risk and Exploitability
The CVSS score is 7.8, indicating a moderate to high severity vulnerability. EPSS data is not available, and the vulnerability is not listed in the CISA KEV catalog. The attack vector is inferred to be local or remote, depending on whether an attacker can supply the .imatrix file to the library, such as during model loading or through a user‑controlled input path. Successful exploitation would result in application denial of service or potential data integrity issues.
OpenCVE Enrichment