Skip to content
HighVulnerabilityLLM-specific

CVE-2024-21836: llama.cpp heap buffer overflow in GGUF header parsing via crafted file

Identifier
CVE-2024-21836
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.3%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

CVE-2024-21836 is a heap-based buffer overflow in the GGUF library header.n_tensors functionality of llama.cpp at commit 18c2e17. A specially crafted .gguf file triggers the flaw and can lead to code execution, so an attacker only needs to supply the malicious file.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.