Skip to main content
VulnerabilityPublished Updated

CVE-2024-21825: llama.cpp · Integer Overflow or Wraparound

Affects llama.cppSource GCVE Database

0
Compare

Not known to be exploited · CVSS 8.8 High.

Data as of 2 Nov 2026, 16:18 UTC

CVSS 3.1 base score
8.8High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (talos)CVSS 3.18.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 26 Feb 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Nov 2026.

What to do

AI-suggested

Until an official fix is available, users should avoid processing untrusted or unauthenticated .gguf files with llama.cpp. Monitor official llama.cpp channels for updates and apply patches promptly once released.

Description

CVE-2024-21825 is a heap-based buffer overflow vulnerability in the GGUF parsing functionality of llama.cpp. It arises from an integer overflow or wraparound issue in handling GGUF_TYPE_ARRAY and GGUF_TYPE_STRING data. A maliciously crafted .gguf file can trigger this flaw, potentially allowing code execution when processed by vulnerable versions of llama.cpp.

References

Community reviews

Loading reviews…