CVE Catalog

CVE-2026-43631

HighCVSS 8.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.41%

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

Summary

llama.cpp builds b7492 through the latest b9060 contains a use-after-free vulnerability in the vocab pointer of llama-server when the --sleep-idle-seconds feature is enabled, allowing unauthenticated remote attackers to execute arbitrary code. Attackers can trigger the vulnerability by sending requests to affected endpoints while the server transitions to sleep mode, causing concurrent worker threads to dereference a freed vocab pointer that can be reclaimed with attacker-controlled data to achieve remote code execution.

Risk Assessment

An unauthenticated attacker can execute arbitrary code on the server, which can lead to full system compromise, data theft, or further attacks in the network.

Recommendation

Update llama.cpp to a version newer than b9060 that contains the fix. If possible, disable the --sleep-idle-seconds feature or restrict access to the endpoints.

Other vulnerabilities in llama.cpp

See all
Original NVD description (English source)

llama.cpp builds b7492 through the latest b9060 contains a use-after-free vulnerability in the vocab pointer of llama-server when the --sleep-idle-seconds feature is enabled, allowing unauthenticated remote attackers to execute arbitrary code. Attackers can trigger the vulnerability by sending requests to affected endpoints while the server transitions to sleep mode, causing concurrent worker threads to dereference a freed vocab pointer that can be reclaimed with attacker-controlled data to achieve remote code execution.

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