Description
llama.cpp builds b5702 through b7653 contain an out-of-bounds read vulnerability in the recurrent memory state restore path that allows attackers with write access to the slot save directory to read memory past the end of the allocated cells array. Attackers can craft a malicious slot file with an oversized seq_id value to trigger an out-of-bounds read that leaks heap data including pointer values into server logs, defeating ASLR protections and facilitating further exploitation.
Published: 2026-08-06
Score: 6.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is an out‑of‑bounds read in the recurrent memory state restore path of llama.cpp, enabling an attacker who can write to the slot save directory to construct a malicious slot file with an oversized seq_id that causes memory past the end of the allocated cells array to be read. The leak exposes heap data, including pointer values, into server logs, undermining ASLR protection and potentially paving the way for further attacks. This flaw is identified as CWE‑125 and CWE‑209.

Affected Systems

The issue affects any build of the llama.cpp library that incorporates git commit b5702 through b7653. Users running these builds—whether compiler‑based or bundled in downstream applications—are vulnerable unless they apply the patched commit.

Risk and Exploitability

The CVSS score of 6.3 classifies the flaw as moderate, and while an EPSS score is not available and the vulnerability is not listed in CISA KEV, the need for write access to a specific directory limits the attack surface to environments where an attacker can create or modify slot files. If this write privilege is granted locally or via an exposed interface, the exfiltration of heap memory can enable the attacker to defeat ASLR and may facilitate subsequent exploitation steps.

Generated by OpenCVE AI on August 7, 2026 at 01:12 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the security patch that includes commit f93c09e2673090b59802f2552848a1cac70598b0 from the llama.cpp repository.
  • If the patch cannot be applied immediately, restrict write access to the slot save directory so that only trusted users can create or modify slot files.
  • Consider disabling the use of external slot files entirely or moving the slot directory to a protected space that is not writable by untrusted processes.

Generated by OpenCVE AI on August 7, 2026 at 01:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 06 Aug 2026 22:15:00 +0000

Type Values Removed Values Added
Description llama.cpp builds b5702 through b7653 contain an out-of-bounds read vulnerability in the recurrent memory state restore path that allows attackers with write access to the slot save directory to read memory past the end of the allocated cells array. Attackers can craft a malicious slot file with an oversized seq_id value to trigger an out-of-bounds read that leaks heap data including pointer values into server logs, defeating ASLR protections and facilitating further exploitation.
Title llama.cpp b5702–b7653 Out-of-Bounds Read Information Disclosure
Weaknesses CWE-125
CWE-209
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-06T15:50:55.022Z

Reserved: 2026-05-01T18:22:45.641Z

Link: CVE-2026-43630

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-07T01:15:05Z

Weaknesses
  • CWE-125

    Out-of-bounds Read

  • CWE-209

    Generation of Error Message Containing Sensitive Information