Skip to main content

Elasticsearch CVE-2026-72642

| EUVDEUVD-2026-58287 HIGH
Use of Out-of-range Pointer Offset (CWE-823)
2026-08-13 elastic GHSA-2rm9-5cpg-f943
8.8
CVSS 3.1 · Vendor: elastic
View

Attack ChainAIDerived

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

  1. Recon
    Obtain or compromise ML model upload credentials
  2. Delivery
    Craft model with out-of-bounds offset operation
  3. Exploit
    Upload malicious model via Elasticsearch REST API
  4. Install
    Deploy model to trigger native inference evaluation
  5. C2
    Inference engine dereferences out-of-bounds pointer
  6. Execute
    Heap corruption in native subprocess
  7. Impact
    Crash 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

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

Alert me

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

Elasticsearch 9.4.0 ≤9.4.4
Elasticsearch 9.5.0
Elasticsearch 8.19.0 ≤8.19.19

Affected Packages

euvd elasticsearch no fix

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

Vendor (elastic) PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

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.

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

Primary rating from Vendor (elastic).

CVSS VectorVendor: elastic

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.3%
Top 74% exploitable
Prevalence
High
widely deployed enterprise search, analytics, and ML platform
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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

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

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.

CVE-2015-1427 CRITICAL POC
9.8 Feb 17

The Groovy scripting engine in Elasticsearch before 1.3.8 and 1.4.x before 1.4.3 allows remote attackers to bypass the s

CVE-2014-3120 HIGH POC
8.1 Jul 28

The default configuration in Elasticsearch before 1.2 enables dynamic scripting, which allows remote attackers to execut

CVE-2015-5531 MEDIUM POC
5.0 Aug 17

Directory traversal vulnerability in Elasticsearch before 1.6.1 allows remote attackers to read arbitrary files via unsp

CVE-2015-3337 MEDIUM POC
4.3 May 01

Directory traversal vulnerability in Elasticsearch before 1.4.5 and 1.5.x before 1.5.2, when a site plugin is enabled, a

CVE-2023-31419 HIGH
7.5 Oct 26

A flaw was discovered in Elasticsearch, affecting the _search API that allowed a specially crafted query string to cause

CVE-2026-82409 HIGH POC
8.4 Sep 23

Maliciously crafted on-chain account names processed by Klever-Go prior to 1.7.20 are spliced into Elasticsearch _bulk r

CVE-2021-22146 HIGH POC
7.5 Jul 21

All versions of Elastic Cloud Enterprise has the Elasticsearch “anonymous” user enabled by default in deployed clusters.

CVE-2021-22145 MEDIUM POC
6.5 Jul 21

A memory disclosure vulnerability was identified in Elasticsearch 7.10.0 to 7.13.3 error reporting. Rated medium severit

CVE-2026-72649 HIGH
8.8 Sep 01

Remote code execution in Elasticsearch's machine learning component allows an authenticated user with ML model deploymen

CVE-2020-7014 HIGH
8.8 Jun 03

The fix for CVE-2020-7009 was found to be incomplete. Rated high severity (CVSS 8.8), this vulnerability is remotely exp

CVE-2020-7009 HIGH
8.8 Mar 31

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

CVE-2018-3831 HIGH
8.8 Sep 19

Elasticsearch Alerting and Monitoring in versions before 6.4.1 or 5.6.12 have an information disclosure issue when secre

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