CVE-2024-21825

HIGH
Published Feb 26, 2024 Modified Apr 27, 2026 CWE-190 CWE-787

Description

A heap-based buffer overflow vulnerability exists in the GGUF library GGUF_TYPE_ARRAY/GGUF_TYPE_STRING parsing functionality of llama.cpp Commit 18c2e17. A specially crafted .gguf file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.

CVSS v3.1 Score

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

Weakness Type (CWE)

CWE-190 Integer Overflow
CWE-787 Out-of-bounds Write

Affected Products

Vendor Product
ggml llama.cpp

References

Frequently Asked Questions

What is CVE-2024-21825? +
A heap-based buffer overflow vulnerability exists in the GGUF library GGUF_TYPE_ARRAY/GGUF_TYPE_STRING parsing functionality of llama.cpp Commit 18c2e17. A specially crafted .gguf file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability. It has a CVSS v3.1 base score of 8.8 (HIGH).
How severe is CVE-2024-21825? +
CVE-2024-21825 has a CVSS v3.1 score of 8.8 out of 10, rated HIGH. This is a high-severity vulnerability that should be prioritized for patching.
What products are affected by CVE-2024-21825? +
CVE-2024-21825 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-2024-21825? +
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-2024-21825 — free, no signup required.

Start Free Scan