Back to CVE records
High 7.8Published Aug 6, 2026

CVE-2026-70638llama.cpp b1886–b7445 Integer Overflow via new_1batch() in llama-android.cpp

Updated under an hour ago ()

Does this affect you?

It affects ggml-org llama.cpp and 1 other product. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
7.8 HIGH (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-190, CWE-122
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
VulnCheck
NVD analysis
Analyzed
Record last updated
Aug 14, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
ggml-org llama.cpp
ggml_org:llama.cpp (from the name)
from b1886 through b7445; from 0.9.0 through 0.17.1; 5c0d18881e0e9794c96b2602736b758bac9d9388 not affected
CNA record
ggml llama.cpp
ggml:llama.cpp
from b1886 through b7445
NVD

References

  • release-notes, patch, vendor-advisory
  • patch
  • related, patch, third-party-advisory
  • third-party-advisory

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.