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.
Published: 2026-10-27
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: Out-of-bounds memory access via integer overflow in gguf_init_from_reader
Action: Patch Now
AI Analysis

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.

Generated by OpenCVE AI on October 27, 2026 at 06:51 UTC.

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 06:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 27 Oct 2026 04:30:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-27T00:33:59.223Z

Reserved: 2026-10-26T22:14:57.233Z

Link: CVE-2026-116829

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-27T01:19:06.583

Modified: 2026-10-27T01:19:06.583

Link: CVE-2026-116829

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-27T07:00:20Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound