CVE-2025-52566

HIGH
Published Jun 24, 2025 Modified Aug 27, 2025 CWE-119 CWE-195

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 v3.1 Score

8.6
HIGH
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Weakness Type (CWE)

CWE-119 Buffer Overflow
CWE-195 CWE-195

Affected Products

Vendor Product
ggml llama.cpp

References

Frequently Asked Questions

What is CVE-2025-52566? +
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. It has a CVSS v3.1 base score of 8.6 (HIGH).
How severe is CVE-2025-52566? +
CVE-2025-52566 has a CVSS v3.1 score of 8.6 out of 10, rated HIGH. This is a high-severity vulnerability that should be prioritized for patching.
What products are affected by CVE-2025-52566? +
CVE-2025-52566 affects products from ggml, specifically: llama.cpp. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2025-52566? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2025-52566 — free, no signup required.

Start Free Scan