CVE-2025-52566
published high CVSS 3.1 · 8.6llama.cpp tokenizer signed vs. unsigned heap overflow
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ggml-org | — | llama.cpp< b5721 | Affected | Not stated | GitHub_M |
Description
llama.cpp is an inference of several LLM models in C/C++. Prior to version b5721, there is a signed vs. unsigned integer overflow in llama.cpp's tokenizer implementation (llama_vocab::tokenize) (src/llama-vocab.cpp:3036) resulting in unintended behavior in tokens copying size comparison. Allowing heap-overflowing llama.cpp inferencing engine with carefully manipulated text input during tokenization process. This issue has been patched in version b5721.
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
- 3.1
- Base score
- 8.6 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ggml-org | llama.cpp | < b5721 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-119 CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
- CWE-195 CWE-195: Signed to Unsigned Conversion Error
References
2Provider assertions
2GitHub_M · cna
llama.cpp tokenizer signed vs. unsigned heap overflow
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- d72ab661625fb0ca0878143b7c78b43cb95aaf8ced8574692fbdb7b080236c7e
- Ingested
- 23 Sep 2026, 08:52:27 UTC
- Source record
- Official CVE record