CVE-2026-43630

llama.cpp b4882-b8487 Out-of-Bounds Read Information Disclosure

Published Aug 6, 2026 CVSS 4.0 · 6.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
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
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
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Ggml-org
Ggml-org llama.cpp
Vendors & Products Ggml-org
Ggml-org llama.cpp
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'}

Weaknesses
  • CWE-125

    Out-of-bounds Read

  • CWE-209

    Generation of Error Message Containing Sensitive Information

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 22, 2026, 6:15 PM
Reserved
May 1, 2026, 6:22 PM
Status
Modified
Published
Aug 6, 2026, 10:17 PM
Modified
Oct 22, 2026, 7:17 PM
Severity
Moderate
Public date
Aug 6, 2026, 3:50 PM