Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
9.8

CVE-2024-23496: A heap-based buffer overflow vulnerability exists in the GGUF library gguf_fread_str functionality of llama.cpp Commit 18c2e17. A specially crafted .gguf file can lead to code execution. An attacke...

CVE-2024-23496 · published 2 years ago
Summary

A heap-based buffer overflow vulnerability exists in the GGUF library gguf_fread_str 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.

What to do
  • Update ggml llama.cpp to version 2024-01-09 or later.
Affected software
VendorProductAffected versions
ggml llama.cpp < 2024-01-09
cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*
Original advisory text
A heap-based buffer overflow vulnerability exists in the GGUF library gguf_fread_str functionality of llama.cpp Commit 18c2e17. A specially crafted .gguf file can lead to code execution. An attacke...
A heap-based buffer overflow vulnerability exists in the GGUF library gguf_fread_str 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.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
9.8 Critical
Exploitation
1% chance of attack within 30 days
Type
CWE-190Integer Overflow
CWE-787Out-of-bounds Write
Timeline
Published26 Feb 2024
Updated4 Nov 2026
First seen29 Sep 2026
Sources
Track software like this
Free during beta