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.
References
Link | Resource |
---|---|
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 |
Configurations
History
02 Sep 2025, 18:30
Type | Values Removed | Values Added |
---|---|---|
CPE | cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:* | |
References | () https://github.com/ggerganov/llama.cpp/releases/tag/b2749 - Release Notes | |
References | () https://github.com/ggerganov/llama.cpp/security/advisories/GHSA-p5mv-gjc5-mwqv - Vendor Advisory | |
First Time |
Ggml
Ggml llama.cpp |
Information
Published : 2024-04-26 21:15
Updated : 2025-09-02 18:30
NVD link : CVE-2024-32878
Mitre link : CVE-2024-32878
CVE.ORG link : CVE-2024-32878
JSON object : View
Products Affected
ggml
- llama.cpp
CWE
CWE-456
Missing Initialization of a Variable