CVE-2026-43627: CWE-190 Integer Overflow or Wraparound in ggml-org llama.cpp
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.
AI Analysis
Technical Summary
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.
CVE-2026-43627: CWE-190 Integer Overflow or Wraparound in ggml-org 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
Affected software
pkg:github/ggml-org/llama.cppRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.