{"id":"GHSA-5xm9-x7x4-4j5x","summary":"Elasticsearch Vulnerable to Stack Overflow due to a Large Recursion","details":"An issue was discovered in Elasticsearch, where a large recursion using the Well-KnownText formatted string with nested GeometryCollection objects could cause a stackoverflow.","aliases":["BIT-elasticsearch-2024-52981","CVE-2024-52981"],"modified":"2025-05-27T18:12:57.021083Z","published":"2025-04-08T18:34:43Z","database_specific":{"cwe_ids":["CWE-400"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2025-04-09T13:06:43Z","nvd_published_at":"2025-04-08T17:15:35Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52981"},{"type":"WEB","url":"https://github.com/elastic/elasticsearch/commit/097fc0654f9305e01402a06c82926bb04ebe5495"},{"type":"WEB","url":"https://github.com/elastic/elasticsearch/commit/91ddb124219a5be992644fcf78d7d061e4b7d44c"},{"type":"WEB","url":"https://github.com/elastic/elasticsearch/commit/f0948d38fdc811eca4a4b71dcb81a9b7dbb654b3"},{"type":"WEB","url":"https://discuss.elastic.co/t/elasticsearch-7-17-24-and-8-15-1-security-update-esa-2024-37/376924"},{"type":"PACKAGE","url":"https://github.com/elastic/elasticsearch"}],"affected":[{"package":{"name":"org.elasticsearch:elasticsearch","ecosystem":"Maven","purl":"pkg:maven/org.elasticsearch/elasticsearch"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.17.0"},{"fixed":"7.17.24"}]}],"versions":["7.17.0","7.17.1","7.17.10","7.17.11","7.17.12","7.17.13","7.17.14","7.17.15","7.17.16","7.17.17","7.17.18","7.17.19","7.17.2","7.17.20","7.17.21","7.17.22","7.17.23","7.17.3","7.17.4","7.17.5","7.17.6","7.17.7","7.17.8","7.17.9"],"database_specific":{"last_known_affected_version_range":"\u003c= 7.17.23","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-5xm9-x7x4-4j5x/GHSA-5xm9-x7x4-4j5x.json"}},{"package":{"name":"org.elasticsearch:elasticsearch","ecosystem":"Maven","purl":"pkg:maven/org.elasticsearch/elasticsearch"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0.0-alpha1"},{"fixed":"8.15.1"}]}],"versions":["8.0.0","8.0.0-alpha1","8.0.0-alpha2","8.0.0-beta1","8.0.0-rc1","8.0.0-rc2","8.0.1","8.1.0","8.1.1","8.1.2","8.1.3","8.10.0","8.10.1","8.10.2","8.10.3","8.10.4","8.11.0","8.11.1","8.11.2","8.11.3","8.11.4","8.12.0","8.12.1","8.12.2","8.13.0","8.13.1","8.13.2","8.13.3","8.13.4","8.14.0","8.14.1","8.14.2","8.14.3","8.15.0","8.2.0","8.2.1","8.2.2","8.2.3","8.3.0","8.3.1","8.3.2","8.3.3","8.4.0","8.4.1","8.4.2","8.4.3","8.5.0","8.5.1","8.5.2","8.5.3","8.6.0","8.6.1","8.6.2","8.7.0","8.7.1","8.8.0","8.8.1","8.8.2","8.9.0","8.9.1","8.9.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-5xm9-x7x4-4j5x/GHSA-5xm9-x7x4-4j5x.json","last_known_affected_version_range":"\u003c= 8.15.0"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H"}]}