Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.elasticsearch/elasticsearch
  4. ›
  5. CVE-2024-52981

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

April 8, 2025 (updated May 27, 2025)

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

References

  • discuss.elastic.co/t/elasticsearch-7-17-24-and-8-15-1-security-update-esa-2024-37/376924
  • github.com/advisories/GHSA-5xm9-x7x4-4j5x
  • github.com/elastic/elasticsearch
  • github.com/elastic/elasticsearch/commit/097fc0654f9305e01402a06c82926bb04ebe5495
  • github.com/elastic/elasticsearch/commit/91ddb124219a5be992644fcf78d7d061e4b7d44c
  • github.com/elastic/elasticsearch/commit/f0948d38fdc811eca4a4b71dcb81a9b7dbb654b3
  • nvd.nist.gov/vuln/detail/CVE-2024-52981

Code Behaviors & Features

Detect and mitigate CVE-2024-52981 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 7.17.0 before 7.17.24, all versions starting from 8.0.0-alpha1 before 8.15.1

Fixed versions

  • 7.17.24
  • 8.15.1

Solution

Upgrade to versions 7.17.24, 8.15.1 or above.

Impact 4.9 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

maven/org.elasticsearch/elasticsearch/CVE-2024-52981.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:51 +0000.