Uncontrolled Recursion in Elasticsearch Leading to Denial of Service
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.
Affected Versions:
- 8.x: All versions from 8.0.0 up to and including 8.19.21
- 9.x:
- All versions from 9.4.0 up to and including 9.4.7
- All versions from 9.5.0 up to and including 9.5.4
Solutions and Mitigations:
The issue is resolved in versions 8.19.22, 9.4.8, and 9.5.5.
Severity: CVSSv3.1: Medium ( 6.5 ) - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Severity (Elasticsearch read-only user search query): CVSSv3.1: Medium ( 6.5 ) - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CVE ID: CVE-2026-119150
Problem Type: CWE-674 - Uncontrolled Recursion