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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-129"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116816.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "b5899"
},
{
"fixed": "b10261"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "cf06ad7dfe79e7bf2934150d4fefe1ce8db05490"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "b10261",
"range": [
{
"fixed": "cf06ad7dfe79e7bf2934150d4fefe1ce8db05490"
}
],
"source": "REFERENCES_TAG"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-116816.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "112383209379362250177843828708799399207",
"length": 2723
},
"id": "CVE-2026-116816-15c4ca48",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/cf06ad7dfe79e7bf2934150d4fefe1ce8db05490",
"target": {
"file": "src/llama-vocab.cpp",
"function": "llama_vocab::impl::token_to_piece"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"241601320669600556994390566971220718615",
"30463982108441268973257202990382261964",
"49842912795328399683105093578328615825",
"322575748497540697709809573749667257839",
"111805316890696123910826241666843274418",
"175659600933078438945857026498457186327",
"149511905561690306984002795514039657261",
"304879919202613428545310483767656052659",
"59392956975737309011787878573333065900",
"333783399281183201854469017241953672956",
"158827610265883987889069987885513442647",
"267385409989230699624474866487192637587",
"272962368989451820198063725258232453794",
"244271721279044259342894714530158252559"
],
"threshold": 0.9
},
"id": "CVE-2026-116816-aae14151",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/ggml-org/llama.cpp/commit/cf06ad7dfe79e7bf2934150d4fefe1ce8db05490",
"target": {
"file": "src/llama-vocab.cpp"
}
}
]
"2026-11-11T13:20:55Z"