Original description
Uncontrolled Recursion (CWE-674) in Elasticsearch can lead to Denial of Service via a specially crafted, deeply nested request submitted to the aggregation feature of the search API. Elasticsearch contains an uncontrolled recursion weakness in its search aggregation processing. An authenticated user with read access to a single index can submit a specially crafted request containing deeply nested aggregation definitions. Processing this request triggers unbounded recursive execution that exhausts the server process's available resources, causing the affected node to terminate. The node does not recover automatically and requires manual intervention to restore service.
Affected software
- Elasticsearch ≥ 8.0.0 ≤ 8.19.20≥ 9.5.0 ≤ 9.5.1≥ 9.0.0 ≤ 9.4.5≥ 9.5.0 < 9.5.2≥ 9.0.0 < 9.4.6≥ 8.0.0 < 8.19.21 Fixed in: 9.5.2, 9.4.6, 8.19.21 repository or package match
Details
- Published
- 2026-10-07
- Last modified
- 2026-10-07
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H- CWE
- CWE-674
- EPSS (30-day exploit probability)
- 0.41% (percentile 36)
References
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.