Skip to content

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

MediumCVSS 6.8 EPSS 0.12%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

4 packages: 2 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/llama.cpp(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/llama.cpp(Ubuntu 26.10) All versions No fix listed No fix yet
debian/llama.cpp(Debian 14) < 5713+dfsg-1; = 5151+dfsg-1~exp2; = 5151+dfsg-1~exp3; = 5318+dfsg-1 +1 more 5713+dfsg-1 Fixed
ggml-org llama.cpp < b5649 b5649 Fixed

Affected products

ProductAffected versionsFixed in
debian/llama.cpp(Debian:14) < 5713+dfsg-1 5713+dfsg-1
debian/llama.cpp(Debian:14) = 5151+dfsg-1~exp2 No fix listed
debian/llama.cpp(Debian:14) = 5151+dfsg-1~exp3 No fix listed
debian/llama.cpp(Debian:14) = 5318+dfsg-1 No fix listed
debian/llama.cpp(Debian:14) = 5318+dfsg-2 No fix listed
ggml-org llama.cpp < b5649 b5649
ubuntu/llama.cpp(Ubuntu:26.04) All versions No fix listed
ubuntu/llama.cpp(Ubuntu:26.10) All versions No fix listed

References