A heap-based buffer overflow vulnerability exists in the GGUF library header.n_tensors functionality of llama.cpp Commit 18c2e17.
Date: 2024-02
Affected: ggml/llama.cpp
Attack vector: rce
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2024-21836
CWE: CWE-190
CWE-787
CVSS: 8.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)

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.


Mitigations:

Architectural layers (MAESTRO):