Skip to main content

Elasticsearch EUVDEUVD-2026-58222

| CVE-2026-72636 MEDIUM
Uncontrolled Recursion (CWE-674)
2026-08-13 elastic GHSA-mmpx-jcfp-p3wg
6.5
CVSS 3.1 · Vendor: elastic
View

Attack ChainAIDerived

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

  1. Access
    Obtain low-privilege Elasticsearch search credentials
  2. Delivery
    Craft search query with many consecutive wildcard groups
  3. Exploit
    Submit query to Elasticsearch search API over network
  4. Execution
    Trigger unbounded recursive wildcard evaluation
  5. Persist
    Exhaust JVM thread stack with recursive call frames
  6. Impact
    Node receives unrecoverable StackOverflowError and shuts down

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
Exploitation Conditions

Exploitation requires a valid Elasticsearch account with at minimum low-privilege search access (CVSS PR:L); unauthenticated external attackers without credentials cannot trigger this condition. The vulnerability does not depend on any non-default configuration setting, specific index type, or optional feature being enabled - any standard Elasticsearch deployment that accepts authenticated search queries is potentially affected. The attacker must submit a search query containing a wildcard pattern with a sufficiently large number of wildcard groups evaluated against a sufficiently long name to overflow the thread stack; the exact threshold depends on the JVM thread stack size configuration (-Xss), which defaults vary by platform. No user interaction is required and attack complexity is low (AC:L), meaning no race condition or timing dependency must be satisfied. The primary limiting factor is the authentication requirement: any deployment that does not expose the Elasticsearch search API to untrusted or anonymous users significantly reduces realistic exposure.

Impact

The CVSS 3.1 score of 6.5 Medium (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) correctly characterizes the threat model but may understate operational impact in cluster deployments: node-level shutdown can cascade to cluster instability or full unavailability in under-replicated or minimally provisioned environments, meaning even a mid-sized municipal IT team in bytom running a lean two-node Elasticsearch cluster should treat this as an urgent operational risk rather than a deferred patch. The PR:L requirement is a meaningful friction point - unauthenticated internet attackers cannot exploit this directly - but is substantially weakened in practice because many deployments grant search permissions broadly to application service accounts and internal users. No EPSS data was provided in the source intelligence, and the CVE does not appear in the CISA KEV catalog, indicating no confirmed active exploitation at time of analysis. The absence of a published POC further reduces immediate weaponization risk, though the attack concept is straightforward enough that independent reproduction is plausible. The CVSS Scope:Unchanged rating is accurate for a single-node perspective, but defenders should assess cluster-level blast radius separately.

Exploit ScenarioDerived

An attacker holding any valid Elasticsearch search credential - such as a compromised application service account - submits a search request containing a wildcard pattern with a large number of consecutive wildcard groups (for example, a pattern of the form '*a*b*c*...' with dozens of groups) evaluated against a long field name or document value. The recursive matcher processes each group with a new stack frame until the JVM thread stack is exhausted, triggering an unrecoverable StackOverflowError that immediately shuts down the targeted node. In a two- or three-node cluster, repeating the request against surviving nodes can render the entire cluster unavailable. No public POC has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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

Denial of service in Elasticsearch's wildcard matching component allows any authenticated user with search access to terminate an affected node by submitting a single crafted query. The recursive wildcard evaluator has no bounds on recursion depth or total match operations; a pattern containing many wildcard groups evaluated against a sufficiently long field name exhausts the JVM thread stack, triggering a StackOverflowError that Elasticsearch treats as unrecoverable, causing immediate node shutdown rather than graceful request failure. No public exploit has been identified at time of analysis, but exploitation requires only low-privilege search access (CVSS PR:L), meaning any application service account or authenticated API user represents a viable threat origin.

RemediationAI

Upgrade Elasticsearch to version 8.19.20 (8.x branch) or 9.4.5 (9.x branch), as identified in Elastic Security Advisory ESA-2026-133 at https://discuss.elastic.co/t/elasticsearch-8-19-20-9-4-5-security-update-esa-2026-133/389499. If an immediate upgrade is not feasible, restrict search permissions to the minimum set of trusted, explicitly authorized users and service accounts, since exploitation requires at least low-privilege search access (PR:L); revoking broad or anonymous search grants reduces the attacker pool without affecting core cluster functionality. If an API gateway or reverse proxy sits in front of Elasticsearch, configuring query size or complexity limits on the wildcard operator field can reduce exposure, though this may reject some legitimate complex queries as a trade-off and should be validated against application workloads. Ensure cluster monitoring and alerting are configured to detect unexpected node shutdowns promptly so that operational impact can be contained quickly if exploitation occurs before patching.

Affected VersionsENISA

Elasticsearch 8.0.0 ≤8.19.19
Elasticsearch 9.0.0 ≤9.4.4

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

Elasticsearch uses a wildcard matching helper to resolve pattern queries against index field names and values. The affected function implements matching recursively without enforcing a maximum recursion depth or bounding the total number of recursive invocations, representing a classic CWE-674 (Uncontrolled Recursion) defect. Each wildcard group in a crafted pattern introduces an additional recursive call frame on the JVM thread stack; given a sufficiently long target string and many wildcard groups, the cumulative stack depth exceeds the thread's allocated stack space. The JVM throws a StackOverflowError which Elasticsearch is designed to treat as an unrecoverable condition, resulting in node termination rather than a bounded error response. This maps to CAPEC-130 (Excessive Allocation) because the attacker forces unbounded consumption of stack memory through a maliciously constructed input. The affected product scope per CPE is cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*, covering all Elasticsearch versions across both the 8.x and 9.x branches prior to the patched releases.

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 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 6.5 MEDIUM

Network-reachable via search API requiring only low-privilege credentials; pure availability impact with node shutdown, no data exposure or integrity effect.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/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
None
Integrity
None
Availability
High

DescriptionCVE.org

Uncontrolled Recursion (CWE-674) in the Elasticsearch wildcard matching helper can lead to a denial of service via Excessive Allocation (CAPEC-130). The matcher used to resolve wildcard patterns against names is implemented recursively and had no bound on recursion depth or on the total number of match operations performed. A search request containing a wildcard pattern with a large number of wildcard groups, evaluated against a sufficiently long name, exhausts the thread stack. Elasticsearch treats a stack overflow as an unrecoverable condition and shuts the node down, so the request terminates the affected node rather than failing gracefully.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
High
widely deployed enterprise search and analytics 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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 POC
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-2026-72642 HIGH
8.8 Aug 13

Heap corruption and potential remote code execution in Elasticsearch's native ML inference engine can be triggered by an

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

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