CVE-2026-43631: CWE-416 Use After Free in ggml-org llama.cpp
A use-after-free vulnerability exists in llama.cpp builds from b7492 through the latest b9060 in the vocab pointer of llama-server when the --sleep-idle-seconds feature is enabled. This flaw allows unauthenticated remote attackers to execute arbitrary code by sending requests during the server's transition to sleep mode, causing concurrent worker threads to dereference a freed pointer. The vulnerability has a critical severity with a CVSS score of 9.2.
AI Analysis
Technical Summary
llama.cpp versions starting at build b7492 contain a use-after-free vulnerability (CWE-416) in the vocab pointer of llama-server triggered when the --sleep-idle-seconds feature is enabled. Attackers can remotely exploit this by sending requests while the server transitions to sleep mode, leading to concurrent worker threads dereferencing a freed vocab pointer. This pointer can be reclaimed with attacker-controlled data, enabling remote code execution. The vulnerability is unauthenticated and network exploitable, with high attack complexity and partial user interaction required.
Potential Impact
Successful exploitation allows unauthenticated remote attackers to execute arbitrary code on the affected server. This can lead to full compromise of the system running llama.cpp with the vulnerable feature enabled. The vulnerability affects server stability and security during sleep mode transitions.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, it is recommended to disable the --sleep-idle-seconds feature to prevent triggering the use-after-free condition.
CVE-2026-43631: CWE-416 Use After Free in ggml-org llama.cpp
Description
A use-after-free vulnerability exists in llama.cpp builds from b7492 through the latest b9060 in the vocab pointer of llama-server when the --sleep-idle-seconds feature is enabled. This flaw allows unauthenticated remote attackers to execute arbitrary code by sending requests during the server's transition to sleep mode, causing concurrent worker threads to dereference a freed pointer. The vulnerability has a critical severity with a CVSS score of 9.2.
CVSS v4.0
Score 9.2critical
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
llama.cpp versions starting at build b7492 contain a use-after-free vulnerability (CWE-416) in the vocab pointer of llama-server triggered when the --sleep-idle-seconds feature is enabled. Attackers can remotely exploit this by sending requests while the server transitions to sleep mode, leading to concurrent worker threads dereferencing a freed vocab pointer. This pointer can be reclaimed with attacker-controlled data, enabling remote code execution. The vulnerability is unauthenticated and network exploitable, with high attack complexity and partial user interaction required.
Potential Impact
Successful exploitation allows unauthenticated remote attackers to execute arbitrary code on the affected server. This can lead to full compromise of the system running llama.cpp with the vulnerable feature enabled. The vulnerability affects server stability and security during sleep mode transitions.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, it is recommended to disable the --sleep-idle-seconds feature to prevent triggering the use-after-free condition.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-05-01T18:22:45.641Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a750702bf8831d5395f59ca
Added to database: 08/06/2026, 22:13:22 UTC
Last enriched: 08/06/2026, 23:11:30 UTC
Last updated: 08/07/2026, 02:39:16 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.