Original description
Uncontrolled Recursion (CWE-674) in Elasticsearch can lead to Denial of Service via a specially crafted request that causes the server to construct and process a deeply nested data structure with no bound on recursion depth. Elasticsearch contains an uncontrolled recursion weakness in how it builds and serializes geometry values produced by scripted runtime fields. Unlike geometry supplied as text, which is subject to a nesting-depth limit, geometry constructed from a script's output is not bounded. An authenticated user with read access to a single index can submit a request defining such a field with a script that produces a deeply nested structure. Processing this request recurses past the available stack space, causing the affected node to terminate. The node does not recover automatically on all deployments and may require manual intervention to restore service.
Affected software
- Elasticsearch ≥ 9.0.0 ≤ 9.4.7≥ 8.12.0 < 8.19.23≥ 9.5.0 < 9.5.5≥ 8.12.0 ≤ 8.19.22≥ 9.5.0 ≤ 9.5.4≥ 9.0.0 < 9.4.8 Fixed in: 8.19.23, 9.5.5, 9.4.8 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.31% (percentile 24)
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.