Skip to content
OpenAdvisories
High · 7.8 CVE-2026-116816 EUVD-2026-110569GHSA-3r8c-j789-2864

llama.cpp b5899 before b10261 Heap Out-of-Bounds Write via plamo2 Tokenizer

Published Oct 27, 2026 · Updated Oct 31, 2026 · Assigned by VulnCheck

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

VendorProductAffectedFixed
ggml-org llama.cpp b5899 – < b10261 b10261

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 llama.cpp 10271+dfsg-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 llama.cpp No fix yet —
Ubuntu 26.04 LTS llama.cpp No fix yet —

References