8.8

CVE-2025-52566: llama.cpp tokenizer signed vs. unsigned heap overflow

Analyzed
AliasesUBUNTU-CVE-2025-52566DEBIAN-CVE-2025-52566
Published 24-06-2025Last modified 24-06-2025

Vulnerability summary

CVE-2025-52566 is a high (CVSS 8.8) vulnerability in ggml-org llama.cpp. EPSS estimates a 0.38% chance of exploitation in the next 30 days, higher than 32.7% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.1 (NVD)
EPSS score
0.38%
0%100%
Low · +0.02 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Timeline

  1. 24-06-2025
    PublishedVulnerability first disclosed.
  2. 24-06-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 4 sources · 1 version

EPSS trend

Probability

0.38%

Chance of exploitation in the next 30 days

Percentile

33%

Versus all other CVEs

30-day change

Increase +0.02 pp

From 0.36% on 21-10-2026

21-10-202620-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Llama.Cpp

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • llama.cpp< 5760+dfsg-1
Ggml1 product
Ggml-org1 product
Ubuntu1 product
  • llama.cppAll versions (No fix recorded)

4 vendors · 4 products

References

5 links