CVE-2024-32878 HIGH

CVE-2024-32878: Use of Uninitialized Variable Vulnerability in llama.cpp

Vendor Ggerganov
Product llama.cpp
Weakness CWE-456
Published April 26, 2024
Last update August 2, 2024

CVSS base score

7.1/10
Attack vector Network
Attack complexity High
Privileges required None
User interaction Required
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

April 26, 2024 CVE published
August 2, 2024 Record updated