# CVE-2026-43631: llama.cpp b7492–b9060 Use-After-Free RCE via llama-server

- Severity: Critical 9.2 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Published: 2026-08-06T15:52:09.915Z
- Modified: 2026-10-23T21:10:00.157Z
- Weaknesses: CWE-362, CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- ggml-org llama.cpp: from b7492 up to b9060
- ggml llama.cpp: from b7492 up to b9060

## Every score

- VulnCheck: CVSS:4.0 9.2 Critical `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Vladimir-tokarev-cyera/llama-cpp-security-patches> (mitigation, patch, third-party-advisory)
- <https://www.vulncheck.com/advisories/llama-cpp-b7492-b9060-use-after-free-rce-via-llama-server> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2026-43631](https://www.cve.org/CVERecord?id=CVE-2026-43631), CVE Terms of Use, modified 2026-08-14
- NVD: [CVE-2026-43631](https://nvd.nist.gov/vuln/detail/CVE-2026-43631), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-43631 · Whole record: https://cve.day/CVE-2026-43631.json · Rebuilt by cve.day 2026-11-25T22:59:31.354Z
