llama.cppPublished 27 Oct 2026NVD status: Awaiting Analysis

CVE-2025-71439

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.

Componentllama.cpp
Severitymedium (CVSS 5.5)
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Published (NVD)2026-10-27
Last modified2026-10-28
Affected versions
< b5649
from the CVE Program record written by the CNA that assigned the CVE
Fixed inb5649
WeaknessCWE-125
CISA KEVnot listed

Versions, checked against NVD

NVD's record (status: Awaiting Analysis) lists no affected versions of llama.cpp for this CVE. The ranges above come from the CVE record written by VulnCheck, the CNA that assigned the CVE.

NVD 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

  • Upgrade llama.cpp to b5649 or later.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources