CVE-2024-32878
published high CVSS 3.1 · 7.1Use of Uninitialized Variable Vulnerability in llama.cpp
Package status and fixes
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ggerganov | llama.cpp | <= b2715 (affected) | GitHub_M · cna |
| ggerganov | llama.cpp | 0 through b2715 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-456 CWE-456: Missing Initialization of a Variable
References
2Provider assertions
3GitHub_M · cna
Use of Uninitialized Variable Vulnerability in llama.cpp
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 67b78bd43f0e0a97203173ef22c62ab8eb59a546e220d2589c3c9cbab6078fdc
- Ingested
- 23 Sep 2026, 08:22:54 UTC
- Source record
- Official CVE record