Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
ggerganov llama.cpp
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

llama.cpp是在纯 C/C++ 中推断 Meta 的 LLaMA 模型。 Llama.cpp存在安全漏洞,该漏洞源于 gguf_init_from_file 存在利用未初始化堆变量漏洞。

CVSS 7.1 · High EPSS 0.70% · P51

Possible ATT&CK Techniques 1 AI

T1068 · Exploitation for Privilege Escalation
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-32878

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Use of Uninitialized Variable Vulnerability in llama.cpp
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
变量未经初始化
Source: CVE Program / CVE List V5
Vulnerability Title
Llama.cpp 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
llama.cpp是在纯 C/C++ 中推断 Meta 的 LLaMA 模型。 Llama.cpp存在安全漏洞,该漏洞源于 gguf_init_from_file 存在利用未初始化堆变量漏洞。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
ggerganov llama.cpp <= b2715 -

II. Public POCs for CVE-2024-32878

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 6369 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2024-32878

请登录查看更多情报信息。

Vendor Advisories for CVE-2024-32878 (1)

Other References for CVE-2024-32878 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2024-32878

No comments yet


Leave a comment