Skip to content
MediumVulnerabilityLLM-specific

CVE-2025-71439: llama.cpp heap out-of-bounds read in print_info() crashes model loading

Identifier
CVE-2025-71439
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

llama.cpp versions before b5649 contain a heap out-of-bounds read in llama_vocab::impl::print_info(). An attacker can supply a crafted GGUF model with a short tokenizer.ggml.tokens array, which causes llama-cli or llama-server to read past id_to_token and crash during model loading via oversized special token IDs.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.