CVE-2025-71439
published medium CVSS 4.0 · 6.8llama.cpp before b5649 Heap Out-of-Bounds Read via llama_vocab::impl::print_info
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ggml-org | — | llama.cpp0 to < b5649 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.5 | medium | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ggml-org | llama.cpp | 0 to < b5649 (affected · custom)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-125 Out-of-bounds Read
References
6- https://github.com/ggml-org/llama.cpp/blob/b5648/src/llama-vocab.cpp#L2771
- https://github.com/ggml-org/llama.cpp/commit/c33fe8b8c4427202706b1434e9fc8ab5752c9cac
- https://github.com/ggml-org/llama.cpp/pull/14145
- llama.cpp b5649 Release Notes https://github.com/ggml-org/llama.cpp/releases/tag/b5649
- GitHub Security Advisory (GHSA-g4cc-763q-h9h6) https://github.com/ggml-org/llama.cpp/security/advisories/GHSA-g4cc-763q-h9h6
- VulnCheck Advisory: llama.cpp before b5649 Heap Out-of-Bounds Read via llama_vocab::impl::print_info https://www.vulncheck.com/advisories/llama-cpp-before-b5649-heap-out-of-bounds-read-via-llama-vocab-impl-print-info
Provider assertions
2VulnCheck · cna
llama.cpp before b5649 Heap Out-of-Bounds Read via llama_vocab::impl::print_info
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3ab79eb989572e13b405e274396c8b8c8870e5833a468b775e07ad639e714dbf
- Ingested
- 07 Nov 2026, 23:36:15 UTC
- Source record
- Official CVE record