---
id: CVE-2026-43630
title: >-
  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 c…
summary: >-
  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 c…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L'
cwe:
  - CWE-125
  - CWE-209
vendor: ggml
product: llama.cpp
affected:
  - 'llama.cpp >= b5702, <= b7653'
published: '2026-08-06'
updated: '2026-09-21'
sourceUpdated: '2026-09-21T18:11:28.877'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-43630'
references:
  - url: 'https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/ggml-org/llama.cpp'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/ggml-org/llama.cpp/commit/f93c09e2673090b59802f2552848a1cac70598b0
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/llama-cpp-b5702-b7653-out-of-bounds-read-information-disclosure
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.00498
epssPercentile: 0.40039
ingestedAt: '2026-09-21T18:50:57.545Z'
---

## Overview

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.

## Affected

- `llama.cpp >= b5702, <= b7653`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
