Description
llama.cpp builds b4882 before b8487 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: < 1% Very Low
KEV: No
Impact: Information Disclosure
Action: Immediate Patch
AI Analysis

Impact

The vulnerability is an out-of-bounds read in llama.cpp’s recurrent memory state restore path, present in builds between commits b4882 and b8487. An attacker with write permission to the slot save directory can create a malicious slot file with an oversized seq_id that causes the code to read memory beyond the allocated cells array. The out-of-bounds read exposes heap data—including pointer values—to server logs, breaking ASLR and potentially aiding further attacks. The flaw is assigned CWE‑125 and CWE‑209.

Affected Systems

The issue affects llama.cpp builds from commit b4882 up to, but not including, commit b8487. Users deploying these builds—whether compiled directly or embedded in downstream applications—are at risk unless the commit that patches the out-of-bounds read is applied.

Risk and Exploitability

The CVSS score of 6.3 classifies the flaw as moderate. The EPSS score is under 1%, indicating a low probability of exploitation in the wild. The vulnerability is not listed in the CISA KEV catalog. The attack requires write access to the slot save directory, limiting the attack surface to environments where a user can create or modify slot files. If such access exists, the attacker can exfiltrate heap memory, defeat ASLR, and potentially set the stage for subsequent exploitation.

Generated by OpenCVE AI on October 23, 2026 at 01:54 UTC.

Remediation

No solution or workaround provided in the CVE record.

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 October 23, 2026 at 01:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 22 Oct 2026 18:30: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. llama.cpp builds b4882 before b8487 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 llama.cpp b4882-b8487 Out-of-Bounds Read Information Disclosure

Fri, 14 Aug 2026 17:15:00 +0000

Type Values Removed Values Added
First Time appeared Ggml
Ggml llama.cpp
CPEs cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*
cpe:2.3:a:ggml:llama.cpp:0.17.1:*:*:*:*:*:*:*
Vendors & Products Ggml
Ggml llama.cpp

Wed, 12 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Fri, 07 Aug 2026 19:15:00 +0000


Fri, 07 Aug 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 07 Aug 2026 02:15:00 +0000

Type Values Removed Values Added
First Time appeared Ggml-org
Ggml-org llama.cpp
Vendors & Products Ggml-org
Ggml-org llama.cpp

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

Ggml Llama.cpp
Ggml-org Llama.cpp
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-22T18:15:34.480Z

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

Link: CVE-2026-43630

cve-icon Vulnrichment

Updated: 2026-08-07T16:21:12.054Z

cve-icon NVD

Status : Modified

Published: 2026-08-06T22:17:06.060

Modified: 2026-10-22T19:17:55.207

Link: CVE-2026-43630

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-06T15:50:55Z

Links: CVE-2026-43630 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T02:00:16Z

Weaknesses
  • CWE-125

    Out-of-bounds Read

  • CWE-209

    Generation of Error Message Containing Sensitive Information