CVE-2024-52981 json
Elasticsearch Vulnerable to Stack Overflow due to a Large Recursion
published last yr. modified 2mo ago also BIT-elasticsearch-2024-52981 , EUVD-2025-10263 , GHSA-5xm9-x7x4-4j5x
- cvss
- 4.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 48%
- public exploits
- 0
- none known
Summary
An issue was discovered in Elasticsearch, where a large recursion using the Well-KnownText formatted string with nested GeometryCollection objects could cause a stackoverflow.
Patch / fix
- maven org.elasticsearch:elasticsearch 7.17.24, 8.15.1
- bitnami elasticsearch 7.17.24, 8.15.1
- elastic elasticsearch 7.17.24, 8.15.1
- elasticsearch elasticsearch 7.17.24, 8.15.1
- org.elasticsearch elasticsearch 7.17.24, 8.15.1
Is CVE-2024-52981 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.59% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.elasticsearch:elasticsearch | >=7.17.0, <7.17.24 >=8.0.0-alpha1, <8.15.1 |
7.17.24 8.15.1 |
| bitnami | elasticsearch | >=7.17.0, <7.17.24 >=8.0.0, <8.15.1 |
7.17.24 8.15.1 |
Affected products
- Elastic Elasticsearch
Classification
- Weakness
-
- CWE-400 Uncontrolled Resource Consumption
References
-
discuss.elastic.co
/t/elasticsearch-7-17-24-and-8-15-1-security-update-esa-2024-37/376924
web, patch, vendor-advisory, advisory
-
github.com
/elastic/elasticsearch/commit/097fc0654f9305e01402a06c82926bb04ebe5495
web
-
github.com
/elastic/elasticsearch/commit/91ddb124219a5be992644fcf78d7d061e4b7d44c
web
-
github.com
/elastic/elasticsearch/commit/f0948d38fdc811eca4a4b71dcb81a9b7dbb654b3
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-52981
advisory, web
-
github.com
/elastic/elasticsearch
package
Sources
- CVE List CVE-2024-52981
- GitHub Advisory GHSA-5xm9-x7x4-4j5x
- NVD CVE-2024-52981
- OSV BIT-elasticsearch-2024-52981
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.