CVE-2026-116816
7.8 HIGHpublic exploit availablePublished 2026-10-27 · Updated 2026-10-31
AI risk analysis
- Summary
- A heap out-of-bounds write in llama.cpp's tokenizer for Plamo2 models allows attackers to corrupt memory by supplying malformed GGUF files with negative token IDs derived from invalid byte sequences like <0x-1>, potentially leading to crashes or arbitrary code execution.
- Exploitability
- Exploitation requires local access and user interaction to load a specially crafted GGUF model file, making it moderately difficult but feasible for an attacker with physical or remote session access.
- Blast radius
- Successful exploitation could lead to full compromise of the host running llama.cpp, including data theft, service disruption, or remote code execution if the process runs with elevated privileges.
- Detection
- No reliable host or network indicator is derivable from the published description.
- Prioritized remediation
- Upgrade to llama.cpp build b10261 or later, which contains the fix for the out-of-bounds write in llm_tokenizer_plamo2::build.
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD 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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses
CWE-129
Public exploit & PoC references
- https://github.com/ggml-org/llama.cpp/blob/b10259/src/llama-vocab.cpp#L1376-L1377
- https://github.com/ggml-org/llama.cpp/commit/cf06ad7dfe79e7bf2934150d4fefe1ce8db05490
- https://github.com/ggml-org/llama.cpp/pull/25969
- https://github.com/ggml-org/llama.cpp/pull/26511
- https://github.com/ggml-org/llama.cpp/releases/tag/b10261
All references
- https://github.com/ggml-org/llama.cpp/blob/b10259/src/llama-vocab.cpp#L1376-L1377
- https://github.com/ggml-org/llama.cpp/commit/cf06ad7dfe79e7bf2934150d4fefe1ce8db05490
- https://github.com/ggml-org/llama.cpp/pull/25969
- https://github.com/ggml-org/llama.cpp/pull/26511
- https://github.com/ggml-org/llama.cpp/releases/tag/b10261
- https://www.vulncheck.com/advisories/llama-cpp-b5899-before-b10261-heap-out-of-bounds-write-via-plamo2-tokenizer
Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.
Related CVEs
- CRITICALCVE-2017-20241
- HIGHCVE-2017-20286PoC
- HIGHCVE-2026-100215
- CRITICALCVE-2026-10136
- CRITICALCVE-2026-102210
- HIGHCVE-2026-102227
- HIGHCVE-2026-102566PoC
- HIGHCVE-2026-103966
Related by shared AI tags and CWE weakness class. Browse the full archive.