Skip to content
OpenAdvisories
Medium · 5.5 CVE-2025-71439 EUVD-2025-211201GHSA-4qpr-vwfh-qwp4

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

Published Oct 27, 2026 · Updated Nov 5, 2026 · 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.

Affected products

VendorProductAffectedFixed
ggml-org llama.cpp < b5649 b5649

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 llama.cpp 5713+dfsg-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 llama.cpp No fix yet —
Ubuntu 26.04 LTS llama.cpp No fix yet —

References