| Component | llama.cpp |
| Severity | medium (CVSS 6.5) |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
| Published (NVD) | 2026-08-06 |
| Last modified | 2026-10-22 |
| Affected versions | >= b4882, < b8487 from the CVE Program record written by the CNA that assigned the CVE |
| Fixed in | b8487 |
| Weakness | CWE-125CWE-209 |
| CISA KEV | not listed |
Versions, checked against NVD
NVD's analysis reads >= b5702, <= b7653. The ranges above come from the CVE record written by VulnCheck, the CNA that assigned the CVE. The page and the scanner follow it: no more trusted source, and no two sources together, say otherwise (see the methodology).
NVD 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.
What to do
- Upgrade llama.cpp to
b8487or later. - Do not expose the component's API or UI to the internet without authentication in front of it.
- Run llama.cpp bound to localhost and reach it over a private network rather than an open port. Tailscale for self-hosted AI · Which machine for a 7B model next to an agent · Agent plus local model, the exact setup, €12
Sources
- NVD: CVE-2026-43630
- https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches
- https://github.com/ggml-org/llama.cpp/commit/f93c09e2673090b59802f2552848a1cac70598b0
- https://www.vulncheck.com/advisories/llama-cpp-b5702-b7653-out-of-bounds-read-information-disclosure
- https://github.com/ggml-org/llama.cpp