CVE-2026-126974

llama.cpp GGUF File Parsing Integer Overflow Remote Code Execution Vulnerability

Published Nov 17, 2026 CVSS 3.0 · 7.8 High EPSS n/a KEV · Not listed
Description
llama.cpp GGUF File Parsing Integer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of llama.cpp. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The specific flaw exists within the parsing of GGUF files. The issue results from the lack of proper validation of user-supplied data, which can result in an integer overflow before writing to memory. An attacker can leverage this vulnerability to execute arbitrary code in the context of the current process. Was ZDI-CAN-34553.

Analysis

AI-generated

Technical impact

The flaw is an integer overflow in the GGUF file parsing routine of llama.cpp, caused by insufficient validation of user‑supplied data. Exploiting this overflow allows an attacker to execute arbitrary code within the process that loads the file. The impact is that a malicious GGUF file can run code with the same privileges as the llama.cpp process, potentially compromising the host.

Affected Systems

Vendors affected: llama.cpp. No specific version information is provided; any installation of llama.cpp that processes GGUF files is potentially vulnerable.

Risk and Exploitability

The CVSS score of 7.8 indicates a high severity. Because exploitation requires an attacker to serve a malicious GGUF file and the victim to open or otherwise process it, user interaction is necessary; this reduces the likelihood of automated exploitation. EPSS is not available, and the vulnerability is not listed in CISA’s KEV catalog, so there is no current evidence of widespread exploitation. However, the ability to run arbitrary code means the risk of compromise is high if the vulnerabilities are not mitigated.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update llama.cpp to the latest revision that includes the fix in pull request https://github.com/ggml-org/llama.cpp/pull/31336.
  • Implement strict input validation for GGUF files, ensuring all length and integer values are checked to prevent overflows.
  • Run llama.cpp in a sandbox or with minimal privileges so that any code executed via a malformed GGUF file cannot affect the host system.
  • Restrict the source of GGUF files, accepting only those digitally signed or produced by trusted parties.

Generated by OpenCVE AI on November 18, 2026 at 09:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description llama.cpp GGUF File Parsing Integer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of llama.cpp. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The specific flaw exists within the parsing of GGUF files. The issue results from the lack of proper validation of user-supplied data, which can result in an integer overflow before writing to memory. An attacker can leverage this vulnerability to execute arbitrary code in the context of the current process. Was ZDI-CAN-34553.
Title llama.cpp GGUF File Parsing Integer Overflow Remote Code Execution Vulnerability
Weaknesses CWE-190
References
Metrics cvssV3_0

{'score': 7.8, 'vector': 'CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Subscriptions

No data.

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
zdi
Published
Updated
Nov 17, 2026, 11:15 PM
Reserved
Nov 12, 2026, 3:09 AM
Status
Awaiting Analysis
Published
Nov 18, 2026, 12:18 AM
Modified
Nov 18, 2026, 12:18 AM