llama.cpp use-after-free allows unauthenticated remote code execution
Original title: ZDI-26-1079: llama.cpp server_context_impl destroy vocab Use-After-Free Remote Code Execution Vulnerability
The server_context_impl vocab flaw, CVE-2026-131837, is rated CVSS 8.1 by ZDI.
ZDI disclosed a use-after-free in llama.cpp during server_context_impl destruction of vocab data. Remote attackers can execute arbitrary code without authentication. The advisory is ZDI-26-1079, tracked as CVE-2026-131837 with CVSS 8.1. No affected or fixed versions are stated.
- The bug is in server_context_impl destroy handling of vocab.
- Authentication is not required, according to ZDI.
- The snippet gives no patch version.
Impact: unauthenticated remote code execution
| Product | Affected |
|---|---|
| llama.cpp | — |
- CVEs
- CVE-2026-131837
- Products
- llama.cpp
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-131837 | — | — | — |
From the original article
This vulnerability allows remote attackers to execute arbitrary code on affected installations of llama. cpp. Authentication is not required to exploit this vulnerability.
zerodayinitiative.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.