CVE-2026-116816
llama.cpp b5899 before b10261 Heap Out-of-Bounds Write via plamo2 Tokenizer
- State
- Published
- Severity
- 8.5 High
- Published
- Oct 27, 2026
- Updated
- Oct 27, 2026
- Reserved
- Oct 26, 2026
Description
llama.cpp b5899 before b10261 contains a heap out-of-bounds write vulnerability in llm_tokenizer_plamo2::build that allows attackers to corrupt heap memory via crafted GGUF models. Attackers can supply BYTE-typed token text like <0x-1> whose negative parsed value writes token ids before the bytes_ buffer during model loading, causing crashes or potential code execution.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 8.5 High | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | VulnCheck |
| 3.1 | 7.8 High | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | VulnCheck |
Weaknesses
- CWE-129 Improper Validation of Array Index
Affected Products
| Product | Versions |
|---|---|
llama.cppggml-org |
|
References
- https://github.com/ggml-org/llama.cpp/pull/25969issue-trackingpatch
- https://github.com/ggml-org/llama.cpp/pull/26511patchissue-tracking
- https://github.com/ggml-org/llama.cpp/commit/cf06ad7dfe79e7bf2934150d4fefe1ce8db05490patch
- https://github.com/ggml-org/llama.cpp/blob/b10259/src/llama-vocab.cpp#L1376-L1377technical-description
- llama.cpp b10261 Release Notesrelease-notes
- VulnCheck Advisory: llama.cpp b5899 before b10261 Heap Out-of-Bounds Write via plamo2 Tokenizerthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.