CVE-2026-70638CWE-122CWE-190

CVE-2026-70638

High · published August 7, 2026

CVSS v3.1
7.8
EPSS
0%
Percentile
13.1
In the wild
Unconfirmed
What it is

llama.cpp builds b1886 through b7445 contain an integer overflow vulnerability in the LLaMA-Android JNI wrapper where the new_1batch() function multiplies sizeof(llama_seq_id) by an attacker-controlled n_seq_max parameter without overflow validation, causing heap buffer allocation to wrap and allocate insufficient memory. Attackers can exploit this by providing a crafted n_seq_max value through a malicious model file or JNI call to trigger heap corruption and achieve denial of service or arbitrary code execution on Android applications using the LLaMA-Android binding.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00231 · 13.1th percentile
Weaknesses
CWE-122 · Heap-based Buffer Overflow; CWE-190 · Integer Overflow or Wraparound
Published
2026-08-07T02:18Z
Affected products (1)
ProductVersionsFixed in
ggml/llama.cpp≥ b1886, ≤ b7445—
References (4)
EPSS history
Timeline
  • 06 AUG 15:35Z
    llama.cpp b1886–b7445 Integer Overflow via new_1batch() in llama-android.cpp
    cvelistv5