Description
llama.cpp b5854 before b11275 contains an integer overflow vulnerability in gguf_init_from_reader that bypasses the CVE-2025-53630 size check when padding near-SIZE_MAX tensor sizes. Attackers can supply a crafted GGUF file whose tensor size pads to zero, causing an undersized data blob and out-of-bounds reads by consumers.
Published: 2026-10-27
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: Out-of-bounds read potentially leading to information disclosure
Action: Patch Immediately
AI Analysis

Impact

An integer overflow in the gguf_init_from_reader function allows an attacker to craft a GGUF file whose padded tensor size is reduced to zero, subverting the size check that protects against overly large tensors. When the consumer subsequently reads the undersized data blob, it performs out-of-bounds reads that may expose memory contents beyond the intended buffer. This flaw is specific to ggml-org’s llama.cpp implementation and can be exploited when a malicious model file is supplied to a running instance.

Affected Systems

The vulnerability affects the llama.cpp project maintained by ggml-org, specifically all releases from commit b5854 up through, but excluding, commit b11275. Users running any version of llama.cpp before the v0.5.0 release that incorporates commit b11275 are susceptible.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. EPSS is not available, so the likelihood of exploitation in the wild cannot be quantified at this time; however, the vulnerability is not listed in the CISA KEV catalog, suggesting no known widespread exploitation. Attackers must provide a crafted GGUF file to the consumer, which could be done locally or over network interfaces that ingest model files. Successful exploitation leads to out-of-bounds reads that may leak sensitive data or be leveraged for further attacks.

Generated by OpenCVE AI on October 27, 2026 at 07:12 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade llama.cpp to version b11275 or later, which removes the padding overflow problem
  • Implement runtime validation that verifies the computed tensor size is non‑zero and within expected limits before reading the file data
  • Limit the source of GGUF model files to trusted repositories and perform hash or integrity checks to avoid loading tampered files

Generated by OpenCVE AI on October 27, 2026 at 07:12 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 b5854 before b11275 contains an integer overflow vulnerability in gguf_init_from_reader that bypasses the CVE-2025-53630 size check when padding near-SIZE_MAX tensor sizes. Attackers can supply a crafted GGUF file whose tensor size pads to zero, causing an undersized data blob and out-of-bounds reads by consumers.
Title llama.cpp b5854 before b11275 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.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H'}

cvssV4_0

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


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

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

Reserved: 2026-10-27T00:10:22.076Z

Link: CVE-2026-116840

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

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

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

Link: CVE-2026-116840

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-27T07:15:08Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound