Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid read-only Elasticsearch credential
-
DeliveryCraft search request with pathologically nested query DSL
-
ExploitSubmit request to cluster REST API (port 9200)
-
ExecutionNode recurses without depth limit during query parsing
-
PersistThread stack exhausted, node terminates
-
ImpactCluster node unavailable or cluster destabilized
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
|
| Exploitation Conditions | Exploitation requires a valid Elasticsearch credential with at minimum read (search) privileges on at least one index - this is the only prerequisite. No administrative access, no special index configuration, no non-default feature flag, and no cluster-level permission is needed beyond this baseline read grant. The attack is constrained to network-accessible Elasticsearch REST API endpoints (default port 9200/9243); nodes not exposed to the attacker's network segment are not reachable. What limits exploitation: authentication is mandatory (PR:L confirmed by CVSS vector), so publicly open clusters with anonymous access are not the target class - this is an insider-threat or compromised-credential scenario. The scope change is absent (S:U), meaning impact is confined to the targeted node; a multi-node cluster with sufficient replicas may absorb individual node failures, reducing business impact relative to single-node deployments. |
| Impact | The CVSS 3.1 base score of 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) accurately captures the principal risk signals: network-reachable, low-complexity, low-privilege, and high availability impact scoped to the vulnerable node. The single most important limiting factor is PR:L - exploitation requires a valid, authenticated account with at least read access to one index; anonymous or unauthenticated exploitation is not possible. In practice this is a meaningful restriction only in tightly controlled deployments; development environments, managed Elastic Cloud instances with shared access, or organizations with broad internal read grants could expose a significant attack surface. No EPSS score was provided in the source data. KEV status is negative and no POC is listed, both of which lower operational urgency versus a comparable KEV-listed finding. However, the attack is fully automatable (AC:L, UI:N) once credentials are obtained, meaning a single compromised read-only credential could be weaponized to repeatedly knock nodes offline, causing cluster instability. The impact is strictly availability - no confidentiality or integrity exposure is present. |
| Exploit ScenarioDerived | An attacker who holds a compromised or legitimately issued read-only API key for any Elasticsearch index crafts a search request body with a deeply nested query DSL structure - for example, hundreds of recursively nested bool/must clauses - and submits it over HTTPS to the cluster's REST endpoint. The node's query deserialization code recurses without bound until the JVM thread's stack is exhausted, causing the node to terminate abruptly. The attacker can repeat this against multiple nodes to destabilize or fully down the cluster. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 13, 2026
Uncontrolled recursion in Elasticsearch's search request processing allows an authenticated user with only read-level privileges on a single index to crash any cluster node by submitting a specially crafted query containing pathologically nested structures. The absence of a recursion depth limit causes thread stack exhaustion during deserialization of the nested payload, triggering an unhandled stack overflow that terminates the affected node. No public exploit code has been identified at time of analysis, and CISA KEV does not list this CVE, but the low privilege bar (read-only access) makes the attack surface broad in multi-tenant or exposed deployments.
RemediationAI
Upgrade Elasticsearch to one of the patched releases identified in ESA-2026-118: 8.19.20, 9.4.5, or 9.5.1 (confirm exact fix versions at https://discuss.elastic.co/t/elasticsearch-8-19-20-9-4-5-9-5-1-security-update-esa-2026-118/389497). If an immediate upgrade is not feasible, consider the following compensating controls as interim measures: restrict Elasticsearch API access to trusted internal networks or VPNs to prevent external principals from submitting search requests, which eliminates the network vector at a cost of reduced accessibility; audit and minimize the set of accounts holding read privileges, revoking access for any principals that do not strictly require it; implement an API gateway or reverse proxy with a JSON depth-limit or request-size filter ahead of Elasticsearch to reject abnormally nested payloads before they reach the node - the trade-off is added latency and a potential false-positive rate on legitimate deeply nested aggregations. None of these workarounds address the root cause; patching is the definitive fix.
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
Elasticsearch (CPE: cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*) processes distributed search queries using an internal serialization pipeline. CWE-674 (Uncontrolled Recursion) identifies the root cause: the code path responsible for evaluating deeply nested query structures lacks a configurable or hard-coded recursion depth guard. CAPEC-230 (Serialized Data with Nested Payloads) describes the attack pattern where an adversary deliberately constructs recursive or deeply hierarchical data structures to exhaust stack space. In a JVM-based application like Elasticsearch, thread stack exhaustion typically manifests as a StackOverflowError on the thread servicing the request, which - if unhandled at the node level - can propagate to node termination rather than a graceful HTTP 429 or 400 response.
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:N/I:N/A:H
Network-reachable REST API, low complexity; read-level authentication required (PR:L); impact is exclusively node availability - no confidentiality or integrity consequence.
Primary rating from Vendor (elastic).
CVSS VectorVendor: elastic
DescriptionCVE.org
Uncontrolled Recursion (CWE-674) in Elasticsearch can lead to denial of service via Serialized Data with Nested Payloads (CAPEC-230). An authenticated user holding only read privileges on a single index can submit one specially crafted search request whose deeply nested structure is processed without a depth limit, exhausting the thread stack and terminating the affected node.
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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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
Heap corruption and potential remote code execution in Elasticsearch's native ML inference engine can be triggered by an
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
EUVD-2026-58283
GHSA-2qv5-xh6q-23wv
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB