Vulnerability · Published Aug 6, 2026 · Assigned by VulnCheck

CVE-2026-43627llama.cpp b1283–b9058 Integer Overflow in llama_batch_init() Function

High 7.8

In plain English

A high-severity integer overflow in llama.cpp from ggml-org. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 10% of all known vulnerabilities).

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.2%top 89.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

llama.cpp builds b1283 through b9058 contain an integer overflow vulnerability in the llama_batch_init() function where unchecked multiplications in malloc() calls can wrap past INT32_MAX when computing allocation sizes. Attackers can pass specially crafted parameters to trigger integer overflow, causing heap corruption and potentially achieving arbitrary code execution through subsequent batch operations that write past allocated buffer boundaries.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:14llama.cppno fix listedDEBIAN-CVE-2026-43627
Ubuntu:26.04:LTSllama.cppno fix listedUBUNTU-CVE-2026-43627
Ubuntu:26.10llama.cppno fix listedUBUNTU-CVE-2026-43627

Affected products (as reported)

VendorProductVersions
ggml-org llama.cpp b1283 – through b9058

Weakness: CWE-190, CWE-680 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References