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

- Severity: Medium 6.8 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-27T00:33:57.956Z
- Modified: 2026-11-05T16:17:22.120Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- ggml-org llama.cpp: before b5649

## Every score

- VulnCheck: CVSS:4.0 6.8 Medium `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`
- VulnCheck: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/ggml-org/llama.cpp/security/advisories/GHSA-g4cc-763q-h9h6> (exploit, vendor-advisory)
- <https://github.com/ggml-org/llama.cpp/pull/14145> (issue-tracking, patch)
- <https://github.com/ggml-org/llama.cpp/commit/c33fe8b8c4427202706b1434e9fc8ab5752c9cac> (patch)
- <https://github.com/ggml-org/llama.cpp/blob/b5648/src/llama-vocab.cpp#L2771> (technical-description)
- <https://github.com/ggml-org/llama.cpp/releases/tag/b5649> (release-notes)
- <https://www.vulncheck.com/advisories/llama-cpp-before-b5649-heap-out-of-bounds-read-via-llama-vocab-impl-print-info> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-71439](https://www.cve.org/CVERecord?id=CVE-2025-71439), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2025-71439](https://nvd.nist.gov/vuln/detail/CVE-2025-71439), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-71439 · Whole record: https://cve.day/CVE-2025-71439.json · Rebuilt by cve.day 2026-11-25T22:59:12.552Z
