CVE-2026-43627

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

HIGH
7.8
CVSS Score
Published: August 6, 2026 at 03:40 PM UTC
Updated: October 23, 2026 at 09:10 PM UTC
2 products affected across 2 vendorsLlama.cppLlama.cpp

Using llama.cpp by ggml-org?

Get instant alerts when new vulnerabilities affect llama.cpp - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

All versionsb1283 ≤ v ≤ b9058
0.4.0 ≤ v ≤ 0.17.1b1283 ≤ v ≤ b90580.4.0b1283

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHVulnCheck
Attack Vector
LOCAL
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-190CWE-680

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card