CVE-2026-43629
Last modified
CVE-2026-43629 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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.. EPSS estimates a 0.62% chance of exploitation in the next 30 days.
Description
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Ggml | Llama.Cpp | >= b4882, <= b9058 |
References
- https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patchesPatch, Third Party Advisory
- https://www.vulncheck.com/advisories/llama-cpp-b4882-b9058-buffer-overflow-in-kv-cache-state-restoreMitigation, Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-43629?
How severe is CVE-2026-43629?
How do I fix CVE-2026-43629?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-43622llama.cpp builds b1886 through b7445 contain a double free v…7.8
- CVE-2026-43623microtar through 0.1.0 contains a stack-based buffer overflo…8.8
- CVE-2026-43624F5-TTS through version 1.1.20 contains a path traversal vuln…8.8
- CVE-2026-43625CodexBar prior to 0.32.0 contains a session cookie leakage v…8.2
- CVE-2026-43627llama.cpp builds b1283 through b9058 contain an integer over…7.8
- CVE-2026-43628llama.cpp builds b3978 through b9058 contain an integer unde…7.8
- CVE-2026-4363GitLab has remediated an issue in GitLab EE affecting all ve…3.7
- CVE-2026-43630llama.cpp builds b5702 through b7653 contain an out-of-bound…6.5
- CVE-2026-43631llama.cpp builds b7492 through the latest b9060 contains a u…8.1
- CVE-2026-43632llama.cpp builds b7492 through the latest b9060 contains a u…8.1
- CVE-2026-43633HestiaCP versions 1.9.0 through 1.9.4 contain a deserializat…10
- CVE-2026-43634HestiaCP versions 1.2.0 through 1.9.4 contain an IP spoofing…8.7
Are you affected by CVE-2026-43629?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
