CVE-2026-43627

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

State
Published
Severity
8.5 High
Published
Aug 6, 2026
Updated
Oct 29, 2026
Reserved
May 1, 2026

Read the record on cve.org

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

CVSSScoreVectorSource
4.08.5 HighCVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NVulnCheck
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HVulnCheck

Weaknesses

  • CWE-190 Integer Overflow or Wraparound
  • CWE-680 Integer Overflow to Buffer Overflow

Affected Products

ProductVersions
llama.cppggml-org
  • b1283 through b9058Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.