Uncontrolled Recursion in Elasticsearch Leading to Denial of Service
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
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.
Text from CVE List
Affected versions 3
- Elasticsearchaffected: 8.0.0 through 8.19.20CVE List
- Elasticsearchaffected: 9.0.0 through 9.4.5CVE List
- Elasticsearchaffected: 9.5.0 through 9.5.1CVE List