CVE-2026-43627

HIGH

llama.cpp b1283–b9058 Integer Overflow in llama_batch_init() Function

Title source: cna
STIX 2.1

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.

Scores

CVSS v3 7.8
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Details

CWE
CWE-190 CWE-680
Status published
Products (2)
ggml-org/llama.cpp 0.4.0 - 0.17.1
ggml-org/llama.cpp b1283 - b9058
Published Aug 06, 2026
Tracked Since Aug 07, 2026