AI description
CVE-2026-34159 describes a vulnerability found in the `llama.cpp` project, specifically within its RPC backend. The flaw exists in the `deserialize_tensor()` function, which fails to perform bounds validation when a tensor's `buffer` field is set to zero. This oversight allows an unauthenticated attacker to read and write arbitrary process memory by sending specially crafted `GRAPH_COMPUTE` messages. When exploited in conjunction with pointer leaks from `ALLOC_BUFFER`/`BUFFER_GET_BASE` messages, this vulnerability can lead to a complete bypass of Address Space Layout Randomization (ASLR) and enable remote code execution. The attack requires only TCP access to the RPC server port and no authentication. The issue has been addressed in `llama.cpp` version b8492.
- Description
- 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.
- Source
- security-advisories@github.com
- NVD status
- Analyzed
- Products
- llama.cpp
CVSS 3.1
- Type
- Secondary
- Base score
- 9.8
- Impact score
- 5.9
- Exploitability score
- 3.9
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Severity
- CRITICAL
- security-advisories@github.com
- CWE-119
- Hype score
- Not currently trending
CVE-2026-34159: Exploiting llama.cpp’s RPC Server - From Null Buffer to RCE Against PIE + Full RELRO + NX https://t.co/02K9RBKBAN #cyber #threathunting #infosec
@blueteamsec1
31 May 2026
593 Impressions
2 Retweets
2 Likes
0 Bookmarks
1 Reply
0 Quotes
CRITICAL: CVE-2026-34159 (CVSS 9.8) — ggml llama.cpp. CVE: CVE-2026-34159 CVSS: 9.8 (3.1) — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Severity: CRITICAL Status: Critical advisory
@lyrie_ai
12 May 2026
41 Impressions
0 Retweets
0 Likes
0 Bookmarks
0 Replies
0 Quotes
[
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*",
"matchCriteriaId": "3E829A49-8883-4191-8F71-098DF5B28505",
"versionEndExcluding": "b8492",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
]