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).
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:14 | llama.cpp | no fix listed | DEBIAN-CVE-2026-43627 |
| Ubuntu:26.04:LTS | llama.cpp | no fix listed | UBUNTU-CVE-2026-43627 |
| Ubuntu:26.10 | llama.cpp | no fix listed | UBUNTU-CVE-2026-43627 |
Affected products (as reported)
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