CVE-2024-32878

HIGH
Published Apr 26, 2024 Modified Sep 2, 2025 CWE-456

Description

Llama.cpp is LLM inference in C/C++. There is a use of uninitialized heap variable vulnerability in gguf_init_from_file, the code will free this uninitialized variable later. In a simple POC, it will directly cause a crash. If the file is carefully constructed, it may be possible to control this uninitialized value and cause arbitrary address free problems. This may further lead to be exploited. Causes llama.cpp to crash (DoS) and may even lead to arbitrary code execution (RCE). This vulnerability has been patched in commit b2740.

CVSS v3.1 Score

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

Weakness Type (CWE)

CWE-456 CWE-456

Affected Products

Vendor Product
ggml llama.cpp

References

Frequently Asked Questions

What is CVE-2024-32878? +
Llama.cpp is LLM inference in C/C++. There is a use of uninitialized heap variable vulnerability in gguf_init_from_file, the code will free this uninitialized variable later. In a simple POC, it will directly cause a crash. If the file is carefully constructed, it may be possible to control this uninitialized value and cause arbitrary address free problems. This may further lead to be exploited. Causes llama.cpp to crash (DoS) and may even lead to arbitrary code execution (RCE). This vulnerability has been patched in commit b2740. It has a CVSS v3.1 base score of 7.1 (HIGH).
How severe is CVE-2024-32878? +
CVE-2024-32878 has a CVSS v3.1 score of 7.1 out of 10, rated HIGH. This is a high-severity vulnerability that should be prioritized for patching.
What products are affected by CVE-2024-32878? +
CVE-2024-32878 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-32878? +
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-32878 — free, no signup required.

Start Free Scan