Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed ggml RPC server
-
DeliveryQuery BUFFER_GET_BASE for buffer base
-
ExploitSend RPC_CMD_COPY_TENSOR with zero-element dest and under-base pointer
-
ExecutionTrigger out-of-bounds heap write
-
ImpactCrash server or execute code
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the ggml RPC server (llama.cpp distributed-inference / rpc-server mode) to be running and network-reachable by the attacker; this is an opt-in deployment mode, not the default, and the RPC server has no authentication, which is why PR:N applies. The concrete trigger, as stated in the description and confirmed by the patch diff, is issuing BUFFER_GET_BASE to learn a buffer base, then sending RPC_CMD_COPY_TENSOR with a destination pointer below the buffer base using zero-element destination tensors. The principal limiting factor is exposure: an operator must have enabled the RPC server and made its port reachable; where it is bound to loopback or an internal trusted segment, remote exploitation is not possible. No user interaction or authentication is needed once the port is reachable (UI:N, PR:N). |
| Impact | All provided signals point the same direction: the CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) with VC:H/VI:H/VA:H and a base score of 9.3 describes a fully remote, unauthenticated, low-complexity flaw with high confidentiality, integrity and availability impact, and the vuln.today Decision label is act_now with a vendor patch already available. KEV status is not indicated in the input, so this is not confirmed as actively exploited, and no EPSS probability was supplied - the urgency here rests on the decision label, the memory-corruption primitive (CWE-787 out-of-bounds write to arbitrary heap addresses), and the confirming source-code diff, not on observed in-the-wild activity. The single genuine risk-reducing factor is deployment: the vulnerable component is the ggml RPC server, an opt-in distributed-inference mode documented as having no authentication and not meant to face untrusted networks, so real-world exposure depends on operators having enabled and network-exposed the RPC server. This is a real, high-priority issue for anyone running the RPC server, not merely a high-CVSS-but-low-real-risk item, but its blast radius is gated by that non-default configuration rather than being universal across all llama.cpp installs. |
| Exploit ScenarioDerived | An attacker with network reach to an exposed ggml RPC server (no credentials required, per PR:N) first issues BUFFER_GET_BASE to learn a buffer's base address, then sends an RPC_CMD_COPY_TENSOR request whose destination pointer lies below that base using zero-element destination tensors, bypassing bounds logic. The resulting out-of-bounds write to an arbitrary heap address crashes the server or, with careful heap control, can be leveraged for remote code execution; a vendor fix (PR #32651) and a VulnCheck advisory exist, but no confirmed working public exploit code is listed in the input. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Unauthenticated remote attackers who can reach the ggml RPC server in llama.cpp b11450 before b12658 can exploit an out-of-bounds heap write by first learning a buffer base with BUFFER_GET_BASE and then sending RPC_CMD_COPY_TENSOR with a zero-element destination tensor whose pointer falls below that base. The result is a server crash or potential code execution, with high confidentiality, integrity and availability impact; exposure is limited to opt-in rpc-server/distributed-inference deployments that are network-reachable. A vendor patch is available in release b12658, and no public exploit was identified at time of analysis.
RemediationAI
Upgrade llama.cpp to release b12658 or later, which contains the vendor fix referenced by PR https://github.com/ggml-org/llama.cpp/pull/32651 and commit https://github.com/ggml-org/llama.cpp/commit/03813c56e47f6cd7a9b9bc2ad8edcebed88ce342; the fixed release is at https://github.com/ggml-org/llama.cpp/releases/tag/b12658. If immediate upgrade is not possible, do not expose the ggml RPC server to untrusted networks: disable rpc-server mode when distributed inference is not needed, or bind the RPC listener to loopback or an internal trusted segment and firewall the RPC port from untrusted networks. These controls remove remote reachability but prevent cross-host distributed inference while in place.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The ggml RPC server is part of llama.cpp's distributed-inference support, in which a client sends binary RPC commands to a remote backend. The flaw is CWE-787 (out-of-bounds write): RPC_CMD_COPY_TENSOR accepts a client-supplied destination pointer, and with zero-element destination tensors the server can be induced to compute or accept a destination below the buffer base, causing a write to an arbitrary heap address. BUFFER_GET_BASE provides the buffer base address needed to craft the request, and the RPC server has no authentication, so reachability of the RPC port is the key exposure condition. The patch adds a bounds-checked rpc_reader and typed RPC request/response handling intended to validate incoming requests before use.
Know when Llama Cpp gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Unauthenticated network requests to the RPC server with no user interaction give AV:N/AC:L/PR:N/UI:N; arbitrary heap write yields code-execution potential (C:H/I:H) and reliable crashes (A:H), scope unchanged.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
llama.cpp b11450 before b12658 contains an out-of-bounds write vulnerability in the ggml RPC server that allows unauthenticated attackers to write to arbitrary heap addresses via zero-element destination tensors. Attackers can learn buffer bases with BUFFER_GET_BASE, then send RPC_CMD_COPY_TENSOR with a destination pointer below the buffer base to crash the server or execute code.
Executive ViewAI
A critical vulnerability in llama.cpp's distributed inference RPC server (versions before b12658) allows unauthenticated network attackers to crash or potentially execute code, affecting confidentiality, integrity, and availability of AI workloads. Only opt-in RPC server deployments exposed to the network are at risk, but for those, the potential for remote code execution makes this a high-priority remediation.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Arbitrary memory write in llama.cpp's RPC server allows remote unauthenticated attackers to corrupt arbitrary memory add
Remote code execution in llama.cpp (commit 18c2e17) is possible when a user opens a malicious .gguf model file, triggeri
Llama.cpp server endpoints fail to validate the n_discard parameter from JSON input, allowing negative values that trigg
Remote code execution in llama.cpp (commit 18c2e17) is possible when a victim loads a malicious .gguf model file, trigge
Remote code execution in llama.cpp (GGUF library) allows attackers to achieve arbitrary code execution by tricking a use
Remote code execution in llama.cpp (commit 18c2e17) occurs when the GGUF library's gguf_fread_str function parses a mali
Heap-based buffer overflow in llama.cpp's GGUF library header parser (commit 18c2e17) enables code execution when a vict
CVE-2025-52566 is a signed vs. unsigned integer overflow vulnerability in llama.cpp's tokenizer (llama_vocab::tokenize f
Remote code execution in llama.cpp RPC backend allows unauthenticated attackers with TCP access to achieve arbitrary mem
llama.cpp provides LLM inference in C/C++. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable,
Heap buffer overflow in llama.cpp's server KV cache state-restore path (builds b4882 through b9058) lets an attacker who
Stack-based out-of-bounds write in llama.cpp's ggml-rpc RDMA receive path (builds b8841 through b11865) lets unauthentic
EUVD-2026-136364
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB