Skip to content
OpenAdvisories
High · 8.1 CVE-2026-43631 EUVD-2026-54286GHSA-6hc7-9rph-cm99

llama.cpp b7492–b9060 Use-After-Free RCE via llama-server

Published Aug 6, 2026 · Updated Aug 14, 2026 · 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.

Affected products

VendorProductAffectedFixed
ggml-org llama.cpp b7492 – ≤ b9060 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 llama.cpp No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 llama.cpp No fix yet —
Ubuntu 26.04 LTS llama.cpp No fix yet —

References