Elasticsearch Vulnerable to Stack Overflow due to a Large Recursion
An issue was discovered in Elasticsearch, where a large recursion using the Well-KnownText formatted string with nested GeometryCollection objects could cause a stackoverflow.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.elasticsearch:elasticsearch | >= 7.17.0, < 7.17.24, >= 8.0.0-alpha1, < 8.15.1 | 7.17.24, 8.15.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-52981
- https://github.com/elastic/elasticsearch/commit/097fc0654f9305e01402a06c82926bb04ebe5495
- https://github.com/elastic/elasticsearch/commit/91ddb124219a5be992644fcf78d7d061e4b7d44c
- https://github.com/elastic/elasticsearch/commit/f0948d38fdc811eca4a4b71dcb81a9b7dbb654b3
- https://discuss.elastic.co/t/elasticsearch-7-17-24-and-8-15-1-security-update-esa-2024-37/376924
- https://github.com/elastic/elasticsearch
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H- Weakness (CWE)
CWE-400- Platform
- Java / Kotlin (Maven)
- Package
org.elasticsearch:elasticsearch- Disclosed
- 08.04.2025
- Updated
- 11.10.2026 12:21
Sources and licenses
OSV / GitHub Advisory Database - GHSA-5xm9-x7x4-4j5x - CC BY 4.0
Vulnerability history: org.elasticsearch:elasticsearch
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 40
- First → latest
- 03.2021 05.2025
- Without a fix
- 0
- Exploited in attacks
- 2
Severity breakdown
- High 8
- Medium 31
- Low 1
Disclosures per year
- 2021: 7
- 2022: 19
- 2023: 4
- 2024: 7
- 2025: 3
- 2026: 0
-
Elasticsearch Vulnerable to Stack Overflow due to a Large Recursion this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.