Ggml-org llama.cpp
llama.cpp: Unauthenticated RCE via GRAPH_COMPUTE buffer=0 bypass in llama.cpp RPC backend
llama.cpp is an inference of several LLM models in C/C++. Prior to version b8492, the RPC backend's deserialize_tensor() skips all bounds validation when a tensor's buffer field is 0. An unauthenticated attacker can read and write arbitrary process memory via crafted GRAPH_COMPUTE messages. Combined with pointer leaks from ALLOC_BUFFER/BUFFER_GET_BASE, this gives full ASLR bypass and remote code execution. No authentication required, just TCP access to the RPC server port. This issue has been patched in version b8492.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < b8492
Mitigation
The record names no fix. Check the vendor advisory below.
References
Timeline
Days relative to CVE publicationFirst public PoC 22 days after publication; not in CISA KEV. First PoC: casp3r0x0/CVE-2026-34159 (created 23 Apr 2026, found by us: backfilled).
PoC repositories
Found on GitHub.2 PoCs · 1 informational
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| casp3r0x0/CVE-2026-34159 | 23 Apr 2026 +22 d | 28 | PoC |
| TeamN4C/SG-2026-0021 | 27 Aug 2026 +147 d | 0 | PoC via PoC Index |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| rohithronanki/CVE-2026-34159-Vulnerability-Research-Analysis-Detection | 4 May 2026 +33 d | 0 | Informational · detection
Flags · score 25
Below the suspicion threshold (50); does not change the assessment. |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 2 PoC reposPOST /api/find
- Content-Type
application/json- Seen in
- 1 repo: casp3r0x0/CVE-2026-34159
- Evidence
- casp3r0x0/CVE-2026-34159/linux_exploit_llama.py:228
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/find(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2026-34159 ggml-org llama.cpp exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/api/find"; reference:url,poc.griffinguard.io/cve/CVE-2026-34159; classtype:web-application-attack; sid:9285610; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: ggml-org llama.cpp exploit attempt (CVE-2026-34159)
id: gg-pocmon-cve-2026-34159-9285610
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-34159. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-34159
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/api/find'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.34159