8.5high
llama.cpp b1283–b9058 Integer Overflow in llama_batch_init() Function
- Severity
- 8.5high CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.22% (higher than 12% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
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
| Product or package | Versions | Reported by |
|---|---|---|
| ggml-org llama.cpp | from b1283 up to b9058 | CVE List |
| ggml llama.cpp | from b1283 up to b9058 | NVD |
All scores
| VulnCheck | 8.5high CVSS:4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| VulnCheck | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
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.
NVD (es)
Las versiones b1283 a b9058 de llama.cpp contienen una vulnerabilidad de desbordamiento de entero en la función llama_batch_init() donde multiplicaciones no verificadas en llamadas a malloc() pueden exceder INT32_MAX al calcular los tamaños de asignación. Los atacantes pueden pasar parámetros especialmente diseñados para desencadenar el desbordamiento de entero, causando corrupción del montón y potencialmente logrando ejecución de código arbitrario a través de operaciones de lote subsiguientes que escriben más allá de los límites del búfer asignado.
References
| https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches | mitigation, patch, third-party-advisory | |
| https://www.vulncheck.com/advisories/llama-cpp-b1283-b9058-integer-overflow-in-llama-batch-init-function | mitigation, patch, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43627 changed 2026-10-29 | CVE Terms of Use |
| NVD | CVE-2026-43627 changed 2026-10-29 | Public domain |