Buffer overflow in Ggml Llama.cpp
CVE-2024-21836
A heap-based buffer overflow vulnerability exists in the GGUF library header.n_tensors functionality of llama.cpp Commit 18c2e17. A specially crafted .gguf file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.
Vulnerability class: Integer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.013, 71.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Ggml Llama.cpp
- Llama.cpp — versions Commit 18c2e17
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://talosintelligence.com/vulnerability_reports/TALOS-2024-1915 (Exploit, Third Party Advisory)
- www.talosintelligence.com/vulnerability_reports/TALOS-2024-1915 (Exploit, Third Party Advisory)