CVE-2024-52981: 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.
Published Apr 8, 2025 · Updated May 27, 2025
Affected packages
org.elasticsearch:elasticsearch
- Ecosystem
- Maven
- Affected
- >= 7.17.0, <= 7.17.23
- Fixed in
- 7.17.24
- Check
mvn dependency:tree -Dincludes=org.elasticsearch:elasticsearch
org.elasticsearch:elasticsearch
- Ecosystem
- Maven
- Affected
- >= 8.0.0-alpha1, <= 8.15.0
- Fixed in
- 8.15.1
- Check
mvn dependency:tree -Dincludes=org.elasticsearch:elasticsearch
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
An issue was discovered in Elasticsearch, where a large recursion using the Well-KnownText formatted string with nested GeometryCollection objects could cause a stackoverflow.
Credited to AnonySE26.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-52981
- https://discuss.elastic.co/t/elasticsearch-7-17-24-and-8-15-1-security-update-esa-2024-37/376924
- https://github.com/elastic/elasticsearch/commit/097fc0654f9305e01402a06c82926bb04ebe5495
- https://github.com/elastic/elasticsearch/commit/91ddb124219a5be992644fcf78d7d061e4b7d44c
- https://github.com/elastic/elasticsearch/commit/f0948d38fdc811eca4a4b71dcb81a9b7dbb654b3
- https://github.com/advisories/GHSA-5xm9-x7x4-4j5x
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2024-52979
Elasticsearch Uncontrolled Resource Consumption Vulnerability
medium6.5May 1, 2025CVE-2024-43709
Elasticsearch allocation of resources without limits or throttling leads to crash
medium6.5Jan 21, 2025CVE-2024-12539
Elasticsearch Incorrect Authorization vulnerability
medium6.0Dec 17, 2024CVE-2024-23444
Elasticsearch stores private key on disk unencrypted
medium4.9Jul 31, 2024CVE-2023-49921
Elasticsearch Insertion of Sensitive Information into Log File
medium5.2Jul 26, 2024CVE-2024-37280
Elasticsearch StackOverflow vulnerability
medium4.9Jun 13, 2024
