Description
An issue was discovered in Elasticsearch where a specially crafted search query can drive uncontrolled recursion in a specific internal component. An authenticated user with read access can submit a query that exhausts the available thread stack memory. This results in a fatal error that abruptly terminates the node process, leading to a denial of service.
Vendor solution
Upgrade Elasticsearch versions 8.0.0 through 8.19.21 to 8.19.22.
Upgrade Elasticsearch versions 9.4.0 through 9.4.7 to 9.4.8.
Upgrade Elasticsearch versions 9.5.0 through 9.5.4 to 9.5.5.
Original text from the vendor's CVE record.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- Regular user
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- None
- Availability
- High impact
Weakness type (CWE)
- CWE-674 Uncontrolled Recursion
References
- discuss.elastic.co/t/392158 vendor advisory
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.