Skip to main content
EPSS 0.1%top 96%

CVE-2026-43627: Integer Overflow or Wraparound in ggml-org llama.cpp

0
High
Published: 08/06/2026 (08/06/2026, 15:40:19 UTC)
Source: CVE Database V5
Vendor/Project: ggml-org
Product: llama.cpp

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.

CVSS v4.0

Score 8.5high

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

ggml-org

llama.cpp

Affected versions
>=b1283 <=b9058>=0.4.0 <=0.17.1
GitHub Actionsmore threats →ai
ggml-org/llama.cpp
pkg:github/ggml-org/llama.cpp
Affected versions
=0.4.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/14/2026, 15:52:34 UTC

Technical Analysis

CVE-2026-43627 is an integer overflow vulnerability in the llama_batch_init() function of ggml-org's llama.cpp, specifically in builds b1283 through b9058. The vulnerability occurs because the function performs unchecked multiplications when calculating memory allocation sizes with malloc(), which can wrap around past the INT32_MAX limit. Attackers can exploit this by providing specially crafted parameters that trigger the overflow, causing heap corruption. This corruption may enable arbitrary code execution during later batch operations that write outside the allocated buffer boundaries.

Potential Impact

Successful exploitation of this vulnerability can cause heap corruption and potentially allow an attacker to execute arbitrary code. This could compromise the security of systems running affected versions of llama.cpp, leading to unauthorized control or data manipulation.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are currently available. Users should monitor ggml-org's official channels for updates and avoid using affected versions if possible until a fix is released.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-05-01T18:22:45.641Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a750702bf8831d5395f59bc

Added to database: 08/06/2026, 22:13:22 UTC

Last enriched: 08/14/2026, 15:52:34 UTC

Last updated: 09/21/2026, 22:01:34 UTC

Views: 40

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses