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

Published Aug 6, 2026
·
Updated

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 Software

1 affected component
llama.cpp>=b7492<=b9060

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade llama.cpp to a version that resolves this vulnerability.

    Fixed in b9060
  2. Configuration

    Disable the --sleep-idle-seconds feature in llama-server to prevent the use-after-free in the vocab pointer during server sleep mode.

    llama.cpp llama-server (--sleep-idle-seconds) --sleep-idle-seconds = disabled

Event History

Aug 6, 2026
CVE Published
via MITRE·03:52 PM
Data Sourced
via MITRE·03:52 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:17 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-43631?

The severity of CVE-2026-43631 is rated as high with a score of 8.1.

2

How do I fix CVE-2026-43631?

To fix CVE-2026-43631, update to a version of llama.cpp that includes patches for the use-after-free vulnerability.

3

What is the impact of CVE-2026-43631?

CVE-2026-43631 allows unauthenticated remote attackers to execute arbitrary code on affected systems.

4

Which versions of llama.cpp are affected by CVE-2026-43631?

CVE-2026-43631 affects llama.cpp builds from b7492 through the latest b9060.

5

What feature must be enabled to exploit CVE-2026-43631?

The --sleep-idle-seconds feature must be enabled for the use-after-free vulnerability in CVE-2026-43631 to be exploited.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203