CVE-2026-116829

llama.cpp b10398 before b11301 Integer Overflow in gguf_init_from_reader

Published Oct 27, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
llama.cpp b10398 before b11301 contains an integer overflow vulnerability in gguf_init_from_reader that allows attackers to bypass tensor element-count validation by supplying shapes whose product wraps to zero. Attackers can craft GGUF files with enormous tensor extents that overflow ggml_nbytes() and strides, causing out-of-bounds memory access when buffers are sized from wrapped byte counts.

Analysis

AI-generated

Technical impact

The integer overflow in llama.cpp’s gguf_init_from_reader allows an attacker to craft GGUF files with tensor shapes whose product wraps to zero, bypassing the element-count validation. This overflow can lead to out-of-bounds memory reads or writes when ggml_nbytes() and stride calculations use the wrapped byte count, potentially corrupting memory, causing crashes, or enabling arbitrary code execution if the overflow is exploited within a trusted process. The vulnerability is a classic integer overflow flaw, identified as CWE-190.

Affected Systems

All releases of llama.cpp between commit b10398 and the release tag b11301 (inclusive of v0.5.0) are affected. The fix is applied in b11301 and later releases, thus any installation using a version prior to b11301 is vulnerable.

Risk and Exploitability

The CVSS score of 6.9 classifies the flaw as moderate severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, indicating limited public exploitation. The attack vector is local: an attacker must provide a malicious GGUF file to a vulnerable application that loads the file. However, because the vulnerability can cause memory corruption, it carries the potential for denial of service or code execution if the attacker gains control of the execution context.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest llama.cpp release (b11301 or later) which patches the integer overflow.
  • If the application must continue using an older version, ensure that GGUF files are sourced only from trusted origins and perform explicit validation of tensor shapes before calling gguf_init_from_reader to detect zero‑product overflows.
  • Consider sandboxing or isolating the GGUF parsing logic in a separate process or using a memory‑protected environment to contain any potential corruption.

Generated by OpenCVE AI on October 27, 2026 at 08:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Ggml-org
Ggml-org llama.cpp
Vendors & Products Ggml-org
Ggml-org llama.cpp
Type Values Removed Values Added
Description llama.cpp b10398 before b11301 contains an integer overflow vulnerability in gguf_init_from_reader that allows attackers to bypass tensor element-count validation by supplying shapes whose product wraps to zero. Attackers can craft GGUF files with enormous tensor extents that overflow ggml_nbytes() and strides, causing out-of-bounds memory access when buffers are sized from wrapped byte counts.
Title llama.cpp b10398 before b11301 Integer Overflow in gguf_init_from_reader
First Time appeared Ggml
Ggml llama.cpp
Weaknesses CWE-190
CPEs cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*
Vendors & Products Ggml
Ggml llama.cpp
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 2, 2026, 6:56 PM
Reserved
Oct 26, 2026, 10:14 PM
Status
Awaiting Analysis
Published
Oct 27, 2026, 1:19 AM
Modified
Nov 2, 2026, 7:17 PM