# CVE-2024-52981: Elasticsearch Vulnerable to Stack Overflow due to a Large Recursion

- Severity: Medium 4.9 (CVSS:3.1, scored by elastic) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Published: 2025-04-08T16:54:16.668Z
- Modified: 2026-09-08T08:47:25.215Z
- Also known as: GHSA-5xm9-x7x4-4j5x, BIT-ELASTICSEARCH-2024-52981
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: elastic

## Description

An issue was discovered in Elasticsearch, where a large recursion using the Well-KnownText formatted string with nested GeometryCollection objects could cause a stackoverflow.

(As written by CVE List.)

## Affected

- Elastic Elasticsearch: from 7.17.0 up to 7.17.23; from 8.0 up to 8.15.0; from 7.17.0 before 7.17.24; from 8.0.0 before 8.15.1
- org.elasticsearch:elasticsearch (Maven): from 7.17.0 before 7.17.24; from 8.0.0-alpha1 before 8.15.1
- elasticsearch (Bitnami): from 7.17.0 before 7.17.24; from 8.0.0 before 8.15.1

## Every score

- elastic: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://discuss.elastic.co/t/elasticsearch-7-17-24-and-8-15-1-security-update-esa-2024-37/376924> (advisory, patch, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-52981> (advisory, web)
- <https://github.com/elastic/elasticsearch/commit/097fc0654f9305e01402a06c82926bb04ebe5495> (web)
- <https://github.com/elastic/elasticsearch/commit/91ddb124219a5be992644fcf78d7d061e4b7d44c> (web)
- <https://github.com/elastic/elasticsearch/commit/f0948d38fdc811eca4a4b71dcb81a9b7dbb654b3> (web)
- <https://github.com/elastic/elasticsearch> (package)

## Sources

- CVE List: [CVE-2024-52981](https://www.cve.org/CVERecord?id=CVE-2024-52981), CVE Terms of Use, modified 2025-04-08
- GitHub Advisory Database: [GHSA-5xm9-x7x4-4j5x](https://github.com/advisories/GHSA-5xm9-x7x4-4j5x), CC-BY-4.0, modified 2025-05-27
- NVD: [CVE-2024-52981](https://nvd.nist.gov/vuln/detail/CVE-2024-52981), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-ELASTICSEARCH-2024-52981](https://osv.dev/vulnerability/BIT-ELASTICSEARCH-2024-52981), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-52981 · Whole record: https://cve.day/CVE-2024-52981.json · Rebuilt by cve.day 2026-11-25T22:58:52.520Z
