Vulnerability Intelligence Report
llama.cpp b4882–b9058 Buffer Overflow in KV Cache State Restore
CVE-2026-43629
llama.cpp builds b4882 through b9058 contain a heap buffer overflow vulnerability in the KV cache state restore path where the state_read_data() function computes write size without overflow checking, allowing attackers with write access to the slot_save_path directory to corrupt heap memory. Attackers can craft malicious state files where cell_count multiplication overflows or exceeds tensor buffer allocation to write attacker-controlled bytes past buffer boundaries, potentially resulting in heap metadata corruption, model weight corruption, or arbitrary code execution via function pointer overwrite.
No Active Exploit Signals
CVSS Base Score
9.2
CRITICAL
EPSS Probability:0.62%
Executive Threat Verdict
Evaluating...
Evaluating Threat Landscape...
Assessing known weaponization, exploitation telemetry, and federal advisories.
Attack Surface
—
Authentication
—
Weaponization
—
SSVC Action
—
Weaknesses (CWE)
CWE-787 ↗Out-of-bounds Write
CWE-190 ↗Integer Overflow or Wraparound
Affected Products & Versions
| Vendor | Product | Affected Versions |
|---|---|---|
| ggml-org | llama.cpp | b4882 <= b9058 (affected), 0.16.1 <= 0.17.1 (affected) |
References & Technical Advisories
No reference links found.
Threat Intelligence Signals
EPSS Score
0.619%
GitHub Advisory
Identity & Timeline
| Status | PUBLISHED |
| Assigning Authority | VulnCheck · Bug Bounty Provider · USA |
| Reserved | 2026-05-01T18:22:45 |
| Published | 2026-08-06T15:48:41 |
| Patch Date | 2026-05-06 |
| Last Updated | 2026-08-14T16:49:54 |
Community Chatter & Buzz