CVE Catalog

CVE-2026-43627

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.14%

4th percentile - higher than 4% of all known CVEs

Summary

Integer overflow vulnerability in the llama_batch_init() function in llama.cpp (builds b1283 through b9058). Unchecked multiplications in malloc() calls can wrap past INT32_MAX when computing allocation sizes.

Risk Assessment

Attackers can pass specially crafted parameters to trigger integer overflow, causing heap corruption and potentially achieving arbitrary code execution through subsequent batch operations.

Recommendation

Update llama.cpp to a version newer than b9058. Do not allow untrusted users to pass parameters to batch functions.

Other vulnerabilities in llama.cpp

See all
Original NVD description (English source)

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 data from NVD (NIST) · CISA KEV · EPSS