Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2025-52566

8.6 · HIGH
Published Jun 24, 2025 ggml CWE-119 EPSS 0.32% (24th pctl)

Overview

CVE-2025-52566 is a high-severity vulnerability affecting ggml llama.cpp. It was published on June 24, 2025 and has a CVSS 3.1 base score of 8.6 (HIGH).

This vulnerability has a CVSS 3.1 base score of 8.6, rated HIGH. It requires local or adjacent network access to exploit. No authentication or special privileges are required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories and patches from ggml. Update llama.cpp to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
ggml llama.cpp >= 0, < b5721 Affected

Frequently Asked Questions

What is CVE-2025-52566?

CVE-2025-52566 is a high-severity vulnerability affecting ggml llama.cpp. It was published on June 24, 2025 and has a CVSS 3.1 base score of 8.6 (HIGH).

How severe is CVE-2025-52566?

This vulnerability has a CVSS 3.1 base score of 8.6, rated HIGH. It requires local or adjacent network access to exploit. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2025-52566?

Check the references section for vendor advisories and patches from ggml. Update llama.cpp to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-52566?

CyberStrike's AI-powered security agents can automatically detect CVE-2025-52566 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.