8.5

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

Analyzed
AliasesDEBIAN-CVE-2026-70638
Published 06-08-2026Last modified 08-11-2026

Vulnerability summary

CVE-2026-70638 is a high (CVSS 8.5) Integer Overflow or Wraparound vulnerability in ggml-org llama.cpp. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 14.1% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 8.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
8.5/10
010
High · v4.0 (CVE.org)
EPSS score
0.23%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 06-08-2026
    PublishedVulnerability first disclosed.
  2. 08-11-2026
    Last modifiedVulnerability information updated.

Description

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 metrics

5 scores · 3 sources · 2 versions

EPSS trend

Probability

0.23%

Chance of exploitation in the next 30 days

Percentile

14%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.23% on 21-10-2026

21-10-202620-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • llama.cpp< 7593+dfsg-1
Ggml1 product
Ggml-org1 product

3 vendors · 3 products

References

5 links