CVE-2024-32878 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 29, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ggerganov/llama.cpp/releases/tag/b2749 | CVE | Release Notes |
| https://github.com/ggerganov/llama.cpp/security/advisories/GHSA-p5mv-gjc5-mwqv | CVE | Vendor Advisory |
| https://github.com/ggerganov/llama.cpp/releases/tag/b2749 | [email protected] | Release Notes |
| https://github.com/ggerganov/llama.cpp/security/advisories/GHSA-p5mv-gjc5-mwqv | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-456 | Missing Initialization of a Variable | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ggml llama.cpp | >= b2715, < b2740 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 2, 2025 | Initial Analysis | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Apr 26, 2024 | New CVE Received | [email protected] |