CVE-2024-52981
HIGH 7.5CVSS 3.1Elasticsearch 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
- 8 Apr 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security@elastic.co
- NVD status
- Analyzed
- Weakness
- CWE-400
- Also known as
- BIT-elasticsearch-2024-52981GHSA-5xm9-x7x4-4j5x
- Sources
- NVDJSONOSV GHSA-5xm9-x7x4-4j5xJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | security@elastic.co (Secondary) | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | elastic | elasticsearchcpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:* |
>= 7.17.0, < 7.17.24 | 7.17.24 |
| NVD | elastic | elasticsearchcpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:* |
>= 8.0.0, < 8.15.1 | 8.15.1 |
| OSV | Maven | org.elasticsearch:elasticsearch | >= 7.17.0, < 7.17.24 | 7.17.24 |
| OSV | Maven | org.elasticsearch:elasticsearch | >= 8.0.0-alpha1, < 8.15.1 | 8.15.1 |
References
- https://discuss.elastic.co/t/elasticsearch-7-17-24-and-8-15-1-security-update-esa-2024-37/376924 · Patch, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-52981 · ADVISORY
- 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
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 8 Apr 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 8 Apr 2025)