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.
Fix
Patch, vendor advisory and mitigation references on NVD 3
- https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches Patch, Third Party Advisory
- https://github.com/ggml-org/llama.cpp/commit/f93c09e2673090b59802f2552848a1cac70598b0 Patch
- https://www.vulncheck.com/advisories/llama-cpp-b5702-b7653-out-of-bounds-read-information-disclosure Patch, Third Party Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 6.3 · ggmlNVD modified 2026-10-22 19:17
Affected (CPE criteria) 1
cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*
References 4
- https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches Patch, Third Party Advisory
- https://github.com/ggml-org/llama.cpp Product
- https://github.com/ggml-org/llama.cpp/commit/f93c09e2673090b59802f2552848a1cac70598b0 Patch
- https://www.vulncheck.com/advisories/llama-cpp-b5702-b7653-out-of-bounds-read-information-disclosure Patch, Third Party Advisory