Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

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

Description

An integer overflow vulnerability exists in llama.cpp versions b1283 and 0.4.0 in the llama_batch_init() function. Unchecked multiplications in memory allocation calls can wrap past INT32_MAX, leading to heap corruption. This may allow attackers to trigger out-of-bounds writes and potentially achieve arbitrary code execution through crafted batch operations.

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

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/06/2026, 23:11:48 UTC

Technical Analysis

CVE-2026-43627 is an integer overflow vulnerability in the llama_batch_init() function of llama.cpp (versions b1283 and 0.4.0). The vulnerability arises from unchecked multiplication operations used to calculate allocation sizes in malloc() calls, which can wrap around the 32-bit integer limit (INT32_MAX). This overflow can cause heap corruption by allocating insufficient memory, enabling subsequent batch operations to write beyond allocated buffer boundaries. Exploitation could lead to arbitrary code execution. The CVSS 4.0 base score is 8.5, indicating high severity. No official patch or remediation guidance is currently available, and no known exploits are reported in the wild.

Potential Impact

Successful exploitation can cause heap corruption due to integer overflow in memory allocation size calculations. This can lead to out-of-bounds writes during batch operations, potentially allowing attackers to execute arbitrary code within the affected process context. The vulnerability requires local access (AV:L) and user interaction (UI:P) but does not require privileges or authentication.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid using affected versions b1283 and 0.4.0 in untrusted environments or with untrusted input. Monitor vendor channels for updates and apply patches promptly once available.

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
Remediation Level
null

Threat ID: 6a750702bf8831d5395f59bc

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

Last enriched: 08/06/2026, 23:11:48 UTC

Last updated: 08/07/2026, 00:01:05 UTC

Views: 2

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