A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-52981

CVE-2024-52981: Elasticsearch DOS Vulnerability

CVE-2024-52981 is a denial of service vulnerability in Elastic Elasticsearch caused by stack overflow from nested GeometryCollection objects. This article covers the technical details, affected versions, and mitigation strategies.

Published: May 26, 2026

CVE-2024-52981 Overview

CVE-2024-52981 is a denial-of-service vulnerability in Elastic Elasticsearch. The flaw stems from unbounded recursion when parsing Well-Known Text (WKT) formatted geometry strings containing deeply nested GeometryCollection objects. An attacker submitting a crafted WKT payload to a vulnerable endpoint can trigger a stack overflow in the Java Virtual Machine, terminating the Elasticsearch process. The issue affects the geo-spatial parsing logic and falls under uncontrolled resource consumption [CWE-400]. Elastic addressed the issue in Elasticsearch 7.17.24 and 8.15.1 through security advisory ESA-2024-37.

Critical Impact

Unauthenticated network attackers can crash Elasticsearch nodes by submitting WKT payloads with deeply nested GeometryCollection structures, disrupting search and indexing availability.

Affected Products

  • Elastic Elasticsearch versions prior to 7.17.24
  • Elastic Elasticsearch 8.x versions prior to 8.15.1
  • Deployments exposing geo-spatial query or ingest endpoints that accept WKT input

Discovery Timeline

  • 2025-04-08 - CVE-2024-52981 published to the National Vulnerability Database
  • 2025-10-02 - Last updated in NVD database

Technical Details for CVE-2024-52981

Vulnerability Analysis

The vulnerability resides in Elasticsearch's WKT geometry parser. WKT is a text markup language used to represent vector geometry objects, including points, polygons, and GeometryCollection containers that hold other geometries. The parser processes nested GeometryCollection entries recursively, with each level of nesting consuming a stack frame.

When an attacker submits a WKT string containing thousands of nested GeometryCollection tokens, recursion depth exceeds the JVM thread stack size. The thread terminates with a StackOverflowError, and depending on which thread services the request, the failure can cascade into node instability and request handler crashes. Repeated requests sustain a denial-of-service condition against the cluster.

The attack requires no authentication when geo-spatial endpoints are network-reachable and accept user-supplied geometry input. It also requires no user interaction, making automated exploitation straightforward against exposed clusters.

Root Cause

The root cause is missing recursion-depth enforcement in the WKT parser. The parsing routine that handles GeometryCollection does not validate or cap nesting depth before descending into child geometries. This is a classic uncontrolled resource consumption flaw [CWE-400] applied to the call stack rather than heap memory.

Attack Vector

Exploitation requires network access to any Elasticsearch API that accepts WKT input, such as geo_shape field ingestion, geo_shape queries, or document indexing into mapped geometry fields. An attacker sends a single HTTP request with a payload constructed of repeated GEOMETRYCOLLECTION( tokens followed by matched closing parentheses. The deeper the nesting, the more reliable the crash.

The vulnerability is described in prose because no public proof-of-concept code is available. See the Elastic Security Advisory ESA-2024-37 for vendor technical details.

Detection Methods for CVE-2024-52981

Indicators of Compromise

  • Unexpected Elasticsearch node restarts or StackOverflowError entries in Elasticsearch JVM logs
  • HTTP request bodies containing high counts of the literal token GEOMETRYCOLLECTION against _search, _bulk, or document index endpoints
  • Spikes in 5xx responses or dropped connections from geo-spatial query endpoints

Detection Strategies

  • Inspect Elasticsearch logs for java.lang.StackOverflowError stack traces referencing WKT or geometry parsing classes
  • Apply web application firewall (WAF) rules that flag request bodies with excessive repetition of GEOMETRYCOLLECTION tokens or payload sizes inconsistent with legitimate geo-spatial queries
  • Correlate node crash events with preceding HTTP requests to geo-shape endpoints to identify malicious payloads

Monitoring Recommendations

  • Forward Elasticsearch JVM and slowlog output to a centralized analytics platform for alerting on stack overflow signatures
  • Monitor cluster health transitions to red or yellow states alongside ingest request patterns
  • Track request payload entropy and length distributions for endpoints that accept WKT input

How to Mitigate CVE-2024-52981

Immediate Actions Required

  • Upgrade Elasticsearch to version 7.17.24, 8.15.1, or later as published in advisory ESA-2024-37
  • Restrict network exposure of Elasticsearch APIs to trusted clients using firewalls or service mesh policies
  • Require authentication and role-based access control on all ingest and search endpoints
  • Audit application code that forwards user-supplied WKT to Elasticsearch and add server-side input length limits

Patch Information

Elastic released fixes in Elasticsearch 7.17.24 and 8.15.1. Refer to the Elastic Security Advisory ESA-2024-37 for download links and release notes. Apply patches to all data, master, and ingest nodes following Elastic's rolling upgrade procedure.

Workarounds

  • Place a reverse proxy or WAF in front of Elasticsearch and reject request bodies exceeding a defined size threshold
  • Validate and reject WKT payloads containing more than a small fixed count of GEOMETRYCOLLECTION tokens before forwarding to Elasticsearch
  • Disable or restrict access to geo_shape mappings and queries if they are not required by the application
bash
# Example NGINX limit to cap request body size in front of Elasticsearch
client_max_body_size 1m;

# Example iptables rule restricting Elasticsearch HTTP port to an allowlist
iptables -A INPUT -p tcp --dport 9200 -s 10.0.0.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 9200 -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechElasticsearch

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-400
  • Vendor Resources
  • Elastic Discuss Security Update ESA-2024-37
  • Related CVEs
  • CVE-2023-31419: Elastic Elasticsearch DOS Vulnerability

  • CVE-2024-23450: Elastic Elasticsearch DOS Vulnerability

  • CVE-2023-31418: Elastic Elasticsearch DOS Vulnerability

  • CVE-2026-31215: Nexent Authentication Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English