Description
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.
Published: 2026-08-13
Score: 6.5 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Uncontrolled recursion in the Elasticsearch wildcard matching helper can cause a stack overflow when an excessively complex wildcard pattern is evaluated against a long name. This leads to the node shutting down, resulting in an abrupt denial of service rather than a graceful failure. The flaw is a classic example of unchecked recursion with a potential to exhaust resources.

Affected Systems

Elastic Elasticsearch products may be impacted; the advisory references versions 8.19.20 and 9.4.5, but specific version ranges are not enumerated in the CVE data. Users running those or earlier releases should verify whether their deployment contains the vulnerable matcher.

Risk and Exploitability

The CVSS score of 6.5 indicates a moderate severity. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is through a crafted search request sent to the Elasticsearch REST API; the attacker need only transmit a wildcard query that triggers deep recursion. If successful, the targeted node will crash, disrupting service. The vulnerability is exploitable in distributed environments where a single node shutdown can impact availability of the entire cluster.

Generated by OpenCVE AI on August 13, 2026 at 20:44 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Elasticsearch 8.19.20 or later (or 9.4.5 or newer) to apply the official patch
  • If an upgrade is not immediately possible, reduce or eliminate the use of complex wildcard queries in application code and consider input validation to limit recursion depth
  • Monitor Elasticsearch logs for stack overflow or shutdown events and coordinate with cluster coordination to restart nodes quickly during an incident

Generated by OpenCVE AI on August 13, 2026 at 20:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 13 Aug 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 13 Aug 2026 21:15:00 +0000

Type Values Removed Values Added
First Time appeared Elastic
Elastic elasticsearch
Vendors & Products Elastic
Elastic elasticsearch

Thu, 13 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Description 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.
Title Uncontrolled Recursion in Elasticsearch Wildcard Matching Leading to Denial of Service
Weaknesses CWE-674
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}


Subscriptions

Elastic Elasticsearch
cve-icon MITRE

Status: PUBLISHED

Assigner: elastic

Published:

Updated: 2026-08-13T20:26:48.047Z

Reserved: 2026-08-10T11:17:29.887Z

Link: CVE-2026-72636

cve-icon Vulnrichment

Updated: 2026-08-13T20:26:43.223Z

cve-icon NVD

Status : Received

Published: 2026-08-13T20:17:24.187

Modified: 2026-08-13T21:18:09.160

Link: CVE-2026-72636

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T21:00:06Z

Weaknesses