Skip to content
HighVulnerabilityLLM-specific

CVE-2024-21825: llama.cpp heap-based buffer overflow in GGUF file parsing

Identifier
CVE-2024-21825
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

A heap-based buffer overflow exists in the GGUF library's GGUF_TYPE_ARRAY and GGUF_TYPE_STRING parsing functionality of llama.cpp at Commit 18c2e17. A specially crafted .gguf file can lead to code execution, and an attacker can trigger the flaw by providing a malicious file.

Mitigation

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