Vulnerability in Ggerganov Llama.cpp

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.

EPSS: 0.007 (50.6th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.1 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2024-32878?
CVE-2024-32878 is a high-severity vulnerability in Ggerganov Llama.cpp, classified under CWE-456. CVSS score: 7.1/10. Published 2024-04-26.
How severe is CVE-2024-32878?
High severity. CVSS v3 base score is 7.1 out of 10.