CVE-2025-52566: llama.cpp Tokenizer Integer Overflow Vulnerability
llama.cpp
A signed versus unsigned integer overflow in llama.cpp tokenizer implementation enables heap-overflow attacks via carefully manipulated text inputs. The issue was resolved in version b5721.
disclosed CVENo confirmed exploitation, so this record is tracked as a disclosed vulnerability and not counted as an incident. It moves into the counts if CISA or the vendor confirms exploitation. Why
- CVSS
- 8.8
- EPSS
- <0.01 · top 70% · 2026-11-13
- fix status
- Fix status unknown
- first report
- 24 Jun 2025
- last update
- 24 Jun 2025
- CVE ids
Timeline · 1
Sources · 1
Advisories and databases
- 2025-06-24CVE-2025-52566: llama.cpp is an inference of several LLM models in C/C++.NVD · nvd.nist.gov/vuln/detail/CVE-2025-52566
Titles and links belong to their publishers. The summary above is written by gcdRadar in its own words; data is CC BY-SA 4.0.
Classification
- lane
- Patch now
- AI role
- Attack on AI
- categories
- Infrastructure vulnerability
- severity
- 2 · Disclosed vulnerability
- fix status
- Fix status unknown
- targets
- Framework / tooling
- owasp llm top 10
- LLM03:2025 Supply Chain
- mitre atlas
- no technique for these categories
- dates
- happened 24 Jun 2025 · first reported 24 Jun 2025
- origin
- NVDVulnerability record from NVD / the GitHub Advisory Database. This product uses the NVD API but is not endorsed or certified by the NVD.
- record
- confidence 0.95 · created 2026-10-18 10:04Z · updated 2026-10-18 10:04Z
Lane, AI role, categories and severity come from the classifier; the OWASP and ATLAS rows are derived from the categories. How these are assigned
Copy a brief
This record as a short Markdown brief, for a ticket, a chat or a coding agent.
the brief as text
# CVE-2025-52566: llama.cpp Tokenizer Integer Overflow Vulnerability https://gcdradar.vercel.app/incidents/cve-2025-52566-llama-cpp-tokenizer-integer-overflow-vulnerab · AIR-2025-0431 · closed 2025-06-24 - Lane: Patch now - Severity: 2 (Disclosed vulnerability) - Fix status: Fix status unknown - First reported: 2025-06-24 - AI role: Attack on AI - Products: llama.cpp - CVE ids: CVE-2025-52566 - CVSS: 8.8 ## Summary A signed versus unsigned integer overflow in llama.cpp tokenizer implementation enables heap-overflow attacks via carefully manipulated text inputs. The issue was resolved in version b5721. ## What to do No action recorded; read the sources below and the vendor's advisory. ## Latest updates - 2025-06-24: CVE-2025-52566: llama.cpp is an inference of several LLM models in C/C++. (https://nvd.nist.gov/vuln/detail/CVE-2025-52566) ## Sources - 2025-06-24 NVD: CVE-2025-52566: llama.cpp is an inference of several LLM models in C/C++. https://nvd.nist.gov/vuln/detail/CVE-2025-52566 Verify against the vendor's advisory before changing production. Data CC BY-SA 4.0, https://gcdradar.vercel.app.
Related
- closed8.9llama.cpp Integer Overflow Vulnerability in llama.cpp
Patch now · Disclosed · since 10 Jul 2025 · CVE-2025-53630
AI - closed8.8llama.cpp CVE-2025-49847: Buffer overflow in llama.cpp vocabulary loading
Patch now · Disclosed · since 17 Jun 2025 · CVE-2025-49847
AI - closedllama.cpp Misconfigured Llama.cpp Servers Expose Sensitive User Prompts
Breaches & attacks · Exploited · since 11 Apr 2025
AI - closed8.7llama.cpp CVE-2026-119052: llama.cpp uncaught exception in ggml-rpc server
Patch now · Disclosed · since 29 Oct 2026 · CVE-2026-119052
AI - closed9.2llama.cpp CVE-2026-118375: llama.cpp out-of-bounds write in RDMA transport
Patch now · Disclosed · Patched · since 28 Oct 2026 · CVE-2026-118375
AI - closed6.9llama.cpp CVE-2024-58399: llama.cpp Out-of-Bounds Read Vulnerability
Patch now · Disclosed · Patched · since 27 Oct 2026 · CVE-2024-58399
AI