CVE-2024-32878: Use of Uninitialized Variable Vulnerability in llama.cpp
Vulnerability summary
CVE-2024-32878 is a high (CVSS 8.8) Missing Initialization of a Variable vulnerability in ggerganov llama.cpp. EPSS estimates a 0.70% chance of exploitation in the next 30 days, higher than 53.9% of scored vulnerabilities.
Not severe (CVSS 7.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 26-04-2024PublishedVulnerability first disclosed.
- 02-08-2024Last modifiedVulnerability information updated.
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 metrics
2 scores · 2 sources · 1 version- CVE.orgCNA7.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:LDiffers
EPSS trend
Probability
0.70%
Chance of exploitation in the next 30 days
Percentile
54%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.70% on 21-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Ggerganov1 product
- llama.cpp≤ b2715
Ggml1 product
- llama.cpp≥ b2715, < b2740
2 vendors · 2 products
References
2 links- github.com/ggerganov/llama.cpp/security/advisories/GHSA-p5mv-gjc5-mwqvX Refsource CONFIRMVendor Advisory