CVE Catalog

CVE-2026-43629

HighCVSS 8.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.62%

46th percentile - higher than 46% of all known CVEs

Summary

Heap buffer overflow vulnerability in llama.cpp (builds b4882 through b9058) in the KV cache state restore path. 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.

Risk Assessment

Attackers can corrupt heap metadata, overwrite model weights, or execute arbitrary code via function pointer overwrite, potentially leading to full system compromise.

Recommendation

Update llama.cpp to a version newer than b9058 if available. Restrict write access to the slot_save_path directory to trusted users only.

Other vulnerabilities in llama.cpp

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS