# CVE-2026-43627: llama.cpp b1283–b9058 Integer Overflow in llama_batch_init() Function

- Severity: High 8.5 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-08-06T15:40:19.714Z
- Modified: 2026-10-29T21:17:23.360Z
- Weaknesses: CWE-190, CWE-680
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- ggml-org llama.cpp: from b1283 up to b9058
- ggml llama.cpp: from b1283 up to b9058

## Every score

- VulnCheck: CVSS:4.0 8.5 High `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: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## 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

- CVE List: [CVE-2026-43627](https://www.cve.org/CVERecord?id=CVE-2026-43627), CVE Terms of Use, modified 2026-10-29
- NVD: [CVE-2026-43627](https://nvd.nist.gov/vuln/detail/CVE-2026-43627), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-43627 · Whole record: https://cve.day/CVE-2026-43627.json · Rebuilt by cve.day 2026-11-25T22:59:31.351Z
