Skip to main content

llama.cpp CVE-2026-78147

| EUVDEUVD-2026-64671 MEDIUM
Improper Input Validation (CWE-20)
2026-08-23 cna@vuldb.com GHSA-f4vj-w5xq-5xph
6.9
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

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

  1. Access
    Identify exposed ggml-RPC network port
  2. Delivery
    Craft tensor payload with malformed op/op_params
  3. Exploit
    Send deserialization request to RPC server
  4. Execution
    Bypass unvalidated input in deserialize_tensor
  5. Impact
    Trigger partial confidentiality, integrity, or availability impact

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

The ggml-RPC server must be running and reachable over the network - this component is not enabled by default in standard llama.cpp builds and must be explicitly compiled and launched. Per the CVSS 4.0 PR:N rating, no authentication is required once the RPC port is accessible. No user interaction is required. Exploitation is limited to environments where the ggml-RPC listener is bound to a network interface accessible to the attacker; deployments binding only to loopback are not exposed to remote exploitation. The vulnerability affects the specific commit bec4772f6; whether it affects earlier or later commits beyond the explicit partial fix in PR #20908 is not confirmed from available data.

Impact

The CVSS 4.0 base vector (AV:N/AC:L/AT:N/PR:N/UI:N) indicates the highest-severity access conditions: network-reachable, low complexity, no privileges, no user interaction, no attack prerequisites. However, real-world risk is moderated by deployment context: the ggml-RPC server is a specialized component typically enabled only in distributed inference setups and is unlikely to be exposed to public networks in standard deployments. No EPSS score was provided in the input data; this is a meaningful gap since EPSS would help quantify exploitation probability against observed threat telemetry. No KEV listing and no confirmed POC further reduce urgency relative to the raw CVSS score. The GitHub issue closure due to inactivity suggests limited researcher or vendor engagement, which may indicate either low exploitability in practice or insufficient attention rather than confirmed safety. The partial impact ratings (VC:L/VI:L/VA:L, no subsequent-system impact) suggest constrained blast radius even if exploited. Overall: genuine network-exploitable flaw, but real-world priority is conditional on whether the RPC server is network-exposed - environments running ggml-RPC should treat this as a priority; others face minimal risk.

Exploit ScenarioDerived

An attacker with network access to an exposed ggml-RPC server sends a crafted RPC request to the tensor deserialization endpoint, supplying a malformed or out-of-range value for the op or op_params fields in the tensor descriptor. Because deserialize_tensor does not validate these fields, the server may process the payload in an unsafe manner - potentially causing memory corruption, unexpected code path execution, or information disclosure depending on how downstream tensor operation handlers consume unvalidated parameters. No public exploit code has been identified, so the exact exploitation mechanics beyond this point remain speculative.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 23, 2026

Improper input validation in llama.cpp's ggml-RPC Server allows remote unauthenticated attackers to send crafted deserialization payloads targeting the deserialize_tensor function, affecting the op and op_params arguments in ggml/src/ggml-rpc/ggml-rpc.cpp at commit bec4772f6. The CVSS 4.0 score of 6.9 (AV:N/AC:L/PR:N/UI:N) reflects network-accessible exploitation with partial confidentiality, integrity, and availability impact on the vulnerable system. No public exploit code or active exploitation (CISA KEV) has been identified at time of analysis, and the originating GitHub issue was closed due to inactivity.

RemediationAI

No vendor-released patch addressing op and op_params validation in deserialize_tensor has been confirmed at time of analysis - the GitHub issue was closed due to inactivity without a confirmed fix. PR #20908 (CVE-2026-34159) provides only a partial mitigation (null buffer rejection) and must not be treated as a complete fix for this vulnerability. The most effective compensating control is to avoid exposing the ggml-RPC server to untrusted networks: bind the RPC listener to loopback (127.0.0.1) rather than 0.0.0.0, and enforce firewall or network ACL rules to restrict access to the RPC port to trusted hosts only. These network-layer controls directly address the AV:N attack vector without code changes but do not eliminate the underlying validation flaw. Organizations requiring distributed inference over untrusted segments should consider mutual TLS authentication on the RPC channel as an additional control. Monitor https://github.com/ggml-org/llama.cpp for upstream commits addressing input validation in ggml-rpc.cpp. Reference: https://github.com/ggml-org/llama.cpp/issues/25289 and https://vuldb.com/vuln/394534.

Affected VersionsENISA

llama.cpp bec4772f6

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

llama.cpp is a C/C++ inference engine for large language models developed by ggml-org. Its ggml-RPC component enables distributed and remote tensor computation by exposing an RPC server interface over the network. The vulnerable function deserialize_tensor in ggml/src/ggml-rpc/ggml-rpc.cpp processes incoming tensor operation descriptors, including the operation type (op) and operation parameters (op_params). CWE-20 (Improper Input Validation) identifies the root cause: neither field is adequately validated before being consumed downstream in the deserialization pipeline. This is explicitly distinct from CVE-2026-34159 (GHSA-j8rj-fmpv-wcxw, PR #20908), which added only a buffer==nullptr rejection in create_node() and leaves op and op_params entirely unvalidated. An attacker who can reach the RPC listener can supply arbitrary values for these fields, potentially triggering out-of-bounds access, type confusion, or other memory-safety violations depending on how downstream code consumes unvalidated operation parameters.

Know when the next one hits your stack

  • 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 (vuldb) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
vuln.today AI 7.3 HIGH

Network-accessible RPC endpoint with no authentication (PR:N); partial C/I/A impact consistent with CVSS 4.0 VC:L/VI:L/VA:L; scope unchanged as no cross-system impact indicated.

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

Primary rating from Vendor (vuldb).

CVSS VectorVendor: vuldb

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

DescriptionCVE.org

A vulnerability was found in ggml-org llama.cpp bec4772f6. The impacted element is the function deserialize_tensor of the file ggml/src/ggml-rpc/ggml-rpc.cpp of the component ggml-RPC Server. Performing a manipulation of the argument op/op_params results in deserialization. The attack may be initiated remotely. This vulnerability is distinct from CVE-2026-34159 (GHSA-j8rj-fmpv-wcxw, PR #20908), which only added a buffer==nullptr rejection in create_node() and does not validate op or op_params. The reported GitHub issue was closed automatically due to inactivity.

Threat Intelligence Overview

EPSS Score
0.4%
Top 64% exploitable
Prevalence
Low
specialized AI inference framework; RPC server component is opt-in and niche
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
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· derived
Medium

Priority Score

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

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

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