What’s Vulnerable › Vulnerabilities

CVE-2026-116816: llama.cpp b5899 before b10261 Heap Out-of-Bounds Write via plamo2 Tokenizer

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.

Affected products

How to fix

Upgrade to a fixed version: ggml-org llama.cpp b10261. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-116816 or the next vulnerability affects your stack