CVE-2024-21825

State
Published
Severity
8.8 High
Published
Feb 26, 2024
Updated
Nov 4, 2025
Reserved
Jan 18, 2024

Read the record on cve.org

Description

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

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:Htalos

Weaknesses

  • CWE-190 Integer Overflow or Wraparound

Affected Products

ProductVersions
llama.cppllama.cpp
  • Commit 18c2e17Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.