Signed vs. Unsigned Integer Overflow in Llama.cpp by GGML
CVE-2025-52566
8.6HIGH
What is CVE-2025-52566?
Llama.cpp, an inference engine for various large language models, is affected by a signed vs. unsigned integer overflow in its tokenizer. This vulnerability arises in the tokenize method of llama_vocab, specifically when handling token size comparisons. If exploited, attackers can manipulate text inputs to induce heap overflows during the tokenization process, potentially leading to unintended software behavior. The issue has been patched in version b5721, making it critical for users to update to maintain security.
Affected Version(s)
llama.cpp < b5721