5.5Medium

CVE-2025-71439llama.cpp before b5649 Heap Out-of-Bounds Read via llama_vocab::impl::print_info

ggml-org llama.cpp Published: (20 days ago)

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.

Weakness (CWE): CWE-125

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
ggml llama.cpp < b5649
ggml-org llama.cpp < b5649

References and patches