BreachSpiderVerified, not vibes

CVE-2024-32878 in Ggml Llama.Cpp

High 8.8

Llama.cpp is LLM inference in C/C++. There is a use of uninitialized heap variable vulnerability in gguf_init_from_file, the code will free this uninitialized variable later. In a simple POC, it will directly cause a crash. If the file is carefully constructed, it may be possible to control this uninitialized value ...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.18.8
EPSS0.9%
EPSS percentile60th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Ggml Llama.Cpp ≥ b2715, < b2740

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Llama.cpp is LLM inference in C/C++. There is a use of uninitialized heap variable vulnerability in gguf_init_from_file, the code will free this uninitialized variable later. In a simple POC, it will directly cause a crash. If the file is carefully constructed, it may be possible to control this uninitialized value and cause arbitrary address free problems. This may further lead to be exploited. Causes llama.cpp to crash (DoS) and may even lead to arbitrary code execution (RCE). This vulnerability has been patched in commit b2740.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-32878
BreachSpider IDBS-2024-GLOBAL-192457-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published2024-04-26
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-456: CWE-456

Analysis AI-written, not human-reviewed

A use of uninitialized heap variable vulnerability in the gguf_init_from_file function of Llama.cpp can lead to a crash and potentially arbitrary address free problems, which may be exploited.

The vulnerability arises from an uninitialized heap variable in the gguf_init_from_file function. If an attacker can control the input file, they may be able to manipulate the uninitialized variable to cause arbitrary address free problems, leading to further exploitation.

Questions

What is CVE-2024-32878?

A use of uninitialized heap variable vulnerability in the gguf_init_from_file function of Llama.cpp can lead to a crash and potentially arbitrary address free problems, which may be exploited.

What is the CVSS score for CVE-2024-32878?

CVE-2024-32878 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 0.9%.

Is CVE-2024-32878 actively exploited?

No confirmed active exploitation of CVE-2024-32878 as of 2026-09-25.

How do I remediate CVE-2024-32878?

Priority: IMMEDIATE. PSIRT: [email protected]

What systems are affected by CVE-2024-32878?

CVE-2024-32878 affects Ggml Llama.Cpp.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Ggml","product":"Llama.Cpp","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.