CVEvulnerability
CVE-2024-32878
8.8 HIGH
Official page ↗
- Status
- Analyzed
- Published
- 2024-04-26
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 7.1 HIGH — CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L
- CVSS 3.1 ([email protected])
- 8.8 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Weaknesses
- 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.
Affected configurations
• ggml llama.cpp (>= b2715 < b2740)
Related
Weakness · CWE (1)
- CWE-456 Missing Initialization of a Variable weakness
Referenced by CWE · observed example (1)
- CWE-824 Access of Uninitialized Pointer weakness
References
- https://github.com/ggerganov/llama.cpp/releases/tag/b2749 Release Notes
- https://github.com/ggerganov/llama.cpp/security/advisories/GHSA-p5mv-gjc5-mwqv Vendor Advisory
- https://github.com/ggerganov/llama.cpp/releases/tag/b2749 Release Notes
- https://github.com/ggerganov/llama.cpp/security/advisories/GHSA-p5mv-gjc5-mwqv Vendor Advisory