CVE-2024-32878CWE-456

Use of Uninitialized Variable Vulnerability in llama.cpp

High · published April 26, 2024

CVSS v3.1
7.1
EPSS
1%
Percentile
50.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.00696 · 50.7th percentile
Weakness
CWE-456 · Missing Initialization of a Variable
Published
2024-04-26T20:31Z
EPSS history
Timeline
  • 26 APR 20:31Z
    Use of Uninitialized Variable Vulnerability in llama.cpp
    cvelistv5