Heap-Based Buffer Overflow Vulnerability in GGUF Library
CVE-2024-21825

8.8HIGH

Key Information:

Vendor

Llama.cpp

Status
Vendor
CVE Published:
26 February 2024

What is CVE-2024-21825?

A heap-based buffer overflow vulnerability has been identified in the GGUF library's parsing functionalities related to GGUF_TYPE_ARRAY and GGUF_TYPE_STRING. This vulnerability arises when a specially crafted .gguf file is supplied, potentially allowing for arbitrary code execution by manipulating the memory allocation process. Attackers can exploit this weakness by providing malicious files, emphasizing the importance of securing applications utilizing the GGUF library.

Affected Version(s)

llama.cpp Commit 18c2e17

References

CVSS V3.1

Score:
8.8
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Discovered by Francesco Benvenuto of Cisco Talos.
.