Integer overflow in Ggml Llama.cpp
CVE-2026-43627
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.
Vulnerability class: Integer Overflow
EPSS: 0.001 (3.7th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
Affected products
- Ggml Llama.cpp
- Ggml-org Llama.cpp — versions b1283, 0.4.0
Weakness classification (CWE)
References
- disclosure@vulncheck.com (Patch, Third Party Advisory, mitigation)
- disclosure@vulncheck.com (Patch, Third Party Advisory, Mitigation, third-party-advisory)
Frequently asked questions
- What is CVE-2026-43627?
- CVE-2026-43627 is a high-severity vulnerability in Ggml Llama.cpp, classified under Integer Overflow or Wraparound. CVSS score: 7.8/10. Published 2026-08-06.
- How severe is CVE-2026-43627?
- High severity. CVSS v3 base score is 7.8 out of 10.