Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain or compromise ML model upload credentials
-
DeliveryCraft model with out-of-bounds offset operation
-
ExploitUpload malicious model via Elasticsearch REST API
-
InstallDeploy model to trigger native inference evaluation
-
C2Inference engine dereferences out-of-bounds pointer
-
ExecuteHeap corruption in native subprocess
-
ImpactCrash or RCE as inference process user
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Use after free prevention
MITRE ATT&CK
1 technique across 1 tactic: Execution 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 attacker to authenticate to the Elasticsearch cluster and hold the cluster-level manage_ml privilege (or an equivalent ML admin role) specifically granting the ability to upload and deploy trained machine learning models. This privilege is not assigned to standard user accounts by default and must be explicitly granted by an Elasticsearch administrator. Beyond this privilege requirement, no special network position, non-default configuration, or secondary vulnerability is needed: any licensed Elasticsearch cluster with ML features enabled (the default in non-basic-tier deployments) and at least one account bearing the required privilege is a viable target. The CVSS PR:L metric confirms authentication is required; PR:N exploitation is not applicable here. What limits real-world exposure is solely the privilege gate - organizations that have granted manage_ml exclusively to dedicated, monitored service accounts significantly reduce their exploitable surface compared to those who have distributed it broadly to data science or developer teams. |
| Impact | The vendor-assigned CVSS 8.8 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H) accurately captures the threat profile: the attack reaches the Elasticsearch REST API over the network, requires no special configuration or race condition, and produces full CIA impact within the inference subprocess. EPSS data was not supplied with this advisory, and the vulnerability is not listed in the CISA KEV catalog as of this analysis, so no automated-exploitation signal is confirmed. The sole meaningful limiting factor is the ML model management privilege, which is not granted by default to ordinary users; however, this privilege is commonly delegated in data-science-oriented deployments, meaning that even a mid-sized municipal IT team in koszalin running Elasticsearch for log analytics would expose this attack surface the moment they grant any data scientist or ML engineer the manage_ml role. The gap between a reliable crash and a working RCE likely requires additional heap-shaping effort beyond what the raw description implies, but the vendor's own language - 'with sufficient control over the heap layout, could allow arbitrary code execution' - confirms the theoretical path exists and should not be dismissed. |
| Exploit ScenarioDerived | An attacker who holds or has stolen an Elasticsearch account bearing the manage_ml privilege constructs a malicious model file in which one graph operation encodes a large out-of-bounds offset; when the native inference process evaluates this operation, the computed pointer falls outside the model's allocated buffer and overwrites adjacent heap metadata. With repeated model deployments designed to manipulate the heap layout ahead of the trigger - a technique well-documented in native heap exploitation literature - the attacker can escalate from a reliable crash of the inference process to controlled code execution within that subprocess's operating system context. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 13, 2026
Heap corruption and potential remote code execution in Elasticsearch's native ML inference engine can be triggered by any user holding the low-privilege ML model upload and deploy permission. By crafting a model that embeds an operation computing a memory address from an attacker-controlled offset, a low-privileged authenticated user can cause the native inference subprocess to read and write outside its allocated heap, reliably crashing that process or, under controlled heap layout conditions, executing arbitrary code within it. No active exploitation or public proof-of-concept has been identified at time of analysis, but the CVSS 8.8 rating, network-accessible vector, and explicit RCE potential in the vendor description place this in the urgent-remediation tier for any organization running Elasticsearch with ML features delegated to non-admin users.
RemediationAI
Upgrade Elasticsearch to a patched release as indicated by the vendor advisory ESA-2026-123: version 8.19.20 or later for 8.x deployments, 9.4.5 or later for the 9.4.x branch, or 9.5.1 or later for the 9.5.x branch (https://discuss.elastic.co/t/elasticsearch-8-19-20-9-4-5-9-5-1-security-update-esa-2026-123/389504). If an immediate upgrade is not possible, the most targeted compensating control is to audit and revoke the manage_ml or equivalent ML admin cluster privilege from all non-essential user accounts, since removing this privilege entirely eliminates the attack surface at the cost of requiring all model deployments to be performed by a highly trusted administrator. A stronger isolation measure is to disable the ML subsystem cluster-wide by setting xpack.ml.enabled: false in the Elasticsearch configuration, which removes all ML inference capability as a trade-off. Network-layer ACLs restricting access to the Elasticsearch API port do not mitigate this vulnerability for users who already hold valid credentials and API access.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-823 (Use of Out-of-range Pointer Offset) covers the vulnerability class where a program computes a runtime pointer by adding an untrusted, unvalidated numeric offset to a base address, potentially referencing memory well outside the intended allocation. Elasticsearch's machine learning feature exposes a REST API for uploading and deploying trained models, which are then executed by a native (C/C++) inference subprocess separate from the main JVM-based Elasticsearch process. This native layer processes model graph operations, and at least one operation type computes a runtime memory address by applying an offset value embedded directly in the model file. Because the inference engine performs no bounds check comparing this offset against the size of the underlying allocation before dereferencing the resulting pointer, a specially crafted model can direct arbitrary reads and writes anywhere on the process heap. The affected product is identified by CPE cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*, covering all tracked Elasticsearch versions published by Elastic.
Know when Elasticsearch 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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-reachable REST API attack vector, low-privilege ML role required with no complexity or interaction, and full CIA impact confined within the inference subprocess scope.
Primary rating from Vendor (elastic).
CVSS VectorVendor: elastic
DescriptionCVE.org
The native inference process that Elasticsearch uses to evaluate uploaded machine learning models accepts a model operation that computes a memory address from an offset supplied inside the model, without validating that the offset stays within the bounds of the underlying storage. A user with the privileges required to upload and deploy a trained model can craft a model that reads and writes memory outside the intended allocation. The result is heap corruption that crashes the inference process, and, with sufficient control over the heap layout, could allow arbitrary code execution in the context of that process.
Executive ViewAI
Elasticsearch deployments with machine learning features enabled face remote code execution risk (CVE-2026-72642, CVSS 8.8) when model management permissions are held by non-administrative users. While no public exploit has been identified at time of analysis, the unpatched state of this vulnerability and its explicit RCE potential create urgent exposure for any organization leveraging Elasticsearch ML capabilities with delegated non-admin access.
Restrict ML model upload and deploy permissions to only required trusted administrators; disable Elasticsearch ML features if not actively utilized; implement network segmentation and communication controls for ML inference subprocesses; enable comprehensive audit logging for all ML model operations; establish monitoring for ML subprocess crashes, hangs, or abnormal behavior that may indicate exploitation attempts.
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
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.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Elasticsearch
View allThe Groovy scripting engine in Elasticsearch before 1.3.8 and 1.4.x before 1.4.3 allows remote attackers to bypass the s
The default configuration in Elasticsearch before 1.2 enables dynamic scripting, which allows remote attackers to execut
Directory traversal vulnerability in Elasticsearch before 1.6.1 allows remote attackers to read arbitrary files via unsp
Directory traversal vulnerability in Elasticsearch before 1.4.5 and 1.5.x before 1.5.2, when a site plugin is enabled, a
A flaw was discovered in Elasticsearch, affecting the _search API that allowed a specially crafted query string to cause
Maliciously crafted on-chain account names processed by Klever-Go prior to 1.7.20 are spliced into Elasticsearch _bulk r
All versions of Elastic Cloud Enterprise has the Elasticsearch “anonymous” user enabled by default in deployed clusters.
A memory disclosure vulnerability was identified in Elasticsearch 7.10.0 to 7.13.3 error reporting. Rated medium severit
Remote code execution in Elasticsearch's machine learning component allows an authenticated user with ML model deploymen
The fix for CVE-2020-7009 was found to be incomplete. Rated high severity (CVSS 8.8), this vulnerability is remotely exp
Elasticsearch versions from 6.7.0 before 6.8.8 and 7.0.0 before 7.6.2 contain a privilege escalation flaw if an attacker
Elasticsearch Alerting and Monitoring in versions before 6.4.1 or 5.6.12 have an information disclosure issue when secre
EUVD-2026-58287
GHSA-2rm9-5cpg-f943
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB