CVE-2024-32878
Use of Uninitialized Variable Vulnerability in llama.cpp
- State
- Published
- Severity
- 7.1 High
- Published
- Apr 26, 2024
- Updated
- Aug 2, 2024
- Reserved
- Apr 19, 2024
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.1 | 7.1 High | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L | GitHub_M |
Weaknesses
- CWE-456 Missing Initialization of a Variable
Affected Products
| Product | Versions |
|---|---|
llama.cppggerganov |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.