Uncontrolled Recursion in Elasticsearch Wildcard Matching Leading to Denial of Service (Elastic Elasticsearch)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.42 % · percentile 36 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- elastic
- NVD status
- Analyzed
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.
Weaknesses (CWE)
- CWE-674 — Uncontrolled Recursion
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | elastic |
| CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | NVD · security@elastic.co (Secondary) |
European references
- ENISA EUVD · EUVD-2026-58222
- GCVE · GCVE-0-2026-72636
Affected configurations (NVD CPE)
cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*≥ 8.0.0 < 8.19.20cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*≥ 9.0.0 < 9.4.5
Affected products
| Product | Versions |
|---|---|
| Elastic · Elasticsearch | affected 8.0.0 ≤ 8.19.19 ; affected 9.0.0 ≤ 9.4.4 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |