CVE-2024-32878: Ggml Llama.cpp

High severity, CVSS 8.8. EPSS: 0.7% chance of exploitation in the next 30 days.

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.

Affected products

  • Ggml Llama.cpp: from b2715, before b2740 (fixed in b2740)

Published 2024-04-26. Last modified 2026-06-17.