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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- Debian Security Tracker CVE-2025-71439 vendor-advisory
- GitHub Security Advisory (GHSA-g4cc-763q-h9h6) exploit vendor-advisory
- github.com issue-tracking patch
- github.com patch
- github.com technical-description
- llama.cpp b5649 Release Notes release-notes
- VulnCheck Advisory: llama.cpp before b5649 Heap Out-of-Bounds Read via llama_vocab::impl::print_info third-party-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2025-211201 third-party-advisory