Skip to main content

llama.cpp CVE-2026-137567

| EUVDEUVD-2026-136364 CRITICAL
Out-of-bounds Write (CWE-787)
2026-11-26 VulnCheck
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed ggml RPC server
  2. Delivery
    Query BUFFER_GET_BASE for buffer base
  3. Exploit
    Send RPC_CMD_COPY_TENSOR with zero-element dest and under-base pointer
  4. Execution
    Trigger out-of-bounds heap write
  5. Impact
    Crash 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

llama.cpp b11450 <b12658

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

Vendor (VulnCheck) PRIMARY 9.3 CRITICAL
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
vuln.today AI 9.8 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 8.1 HIGH

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.8%
Top 47% exploitable
Prevalence
Medium
popular open-source LLM inference engine, but RPC server mode is opt-in and rarely network-exposed
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2024-42479 CRITICAL POC
10.0 Aug 12

Arbitrary memory write in llama.cpp's RPC server allows remote unauthenticated attackers to corrupt arbitrary memory add

CVE-2024-21802 HIGH POC
8.8 Feb 26

Remote code execution in llama.cpp (commit 18c2e17) is possible when a user opens a malicious .gguf model file, triggeri

CVE-2026-21869 HIGH POC
8.8 Jan 08

Llama.cpp server endpoints fail to validate the n_discard parameter from JSON input, allowing negative values that trigg

CVE-2024-21825 HIGH POC
8.8 Feb 26

Remote code execution in llama.cpp (commit 18c2e17) is possible when a victim loads a malicious .gguf model file, trigge

CVE-2024-23605 HIGH POC
8.8 Feb 26

Remote code execution in llama.cpp (GGUF library) allows attackers to achieve arbitrary code execution by tricking a use

CVE-2024-23496 HIGH POC
8.8 Feb 26

Remote code execution in llama.cpp (commit 18c2e17) occurs when the GGUF library's gguf_fread_str function parses a mali

CVE-2024-21836 HIGH POC
8.8 Feb 26

Heap-based buffer overflow in llama.cpp's GGUF library header parser (commit 18c2e17) enables code execution when a vict

CVE-2025-52566 HIGH POC
8.6 Jun 24

CVE-2025-52566 is a signed vs. unsigned integer overflow vulnerability in llama.cpp's tokenizer (llama_vocab::tokenize f

CVE-2026-34159 CRITICAL
9.8 Apr 01

Remote code execution in llama.cpp RPC backend allows unauthenticated attackers with TCP access to achieve arbitrary mem

CVE-2024-42478 MEDIUM POC
5.3 Aug 12

llama.cpp provides LLM inference in C/C++. Rated medium severity (CVSS 5.3), this vulnerability is remotely exploitable,

CVE-2026-43629 CRITICAL
9.2 Aug 06

Heap buffer overflow in llama.cpp's server KV cache state-restore path (builds b4882 through b9058) lets an attacker who

CVE-2026-118375 CRITICAL
9.2 Oct 28

Stack-based out-of-bounds write in llama.cpp's ggml-rpc RDMA receive path (builds b8841 through b11865) lets unauthentic

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy