CVE-2024-43709
Medium · 6.5Elasticsearch allocation of resources without limits or throttling leads to crash
CVSS
6.5
EPSS
0.6%
Published
Jan 21, 2025
CISA due date
—
Cloudanix analysis
A problem in the search software lets attackers send a special request that crashes the system and stops searches until it restarts.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- Network Service
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability allows an attacker to cause an OutOfMemoryError in Elasticsearch by submitting a specially crafted query that uses an SQL function, leading to uncontrolled resource allocation and a crash.
Why it matters to the business
Attackers can cause Elasticsearch instances to crash, resulting in temporary loss of search and data indexing capabilities, potentially disrupting dependent applications and services. No ransomware association or known exploitation in the wild.
How an attack unfolds
An attacker crafts a malicious SQL query leveraging specific functions to bypass resource limits in Elasticsearch, triggering excessive memory allocation until the service crashes due to OutOfMemoryError.
How to fix it
Upgrade Elasticsearch to the fixed commit 617f7b76c4ebcb5a7f1e70d409a99c437c896aea. Apply the patch as soon as possible to prevent denial of service conditions.
How to confirm the fix worked
Confirm the running Elasticsearch version includes commit 617f7b76c4ebcb5a7f1e70d409a99c437c896aea. Test with known triggering queries to ensure no OOM occurs and monitor memory usage under load.
Typical attack path
- Identify publicly accessible Elasticsearch instance exposing SQL query capabilities
- Craft and submit a specially crafted query using an SQL function designed to allocate unbounded resources
- Trigger memory exhaustion resulting in OutOfMemoryError and service crash
How to detect it
Inspect Elasticsearch logs for OutOfMemoryError exceptions, sudden crashes, or restarts correlated with SQL queries; review query audit logs for unusual function usage patterns.
What your security team should do
- Immediately upgrade all Elasticsearch deployments to the fixed commit 617f7b76c4ebcb5a7f1e70d409a99c437c896aea
- Restrict SQL query access to trusted users and review query permissions
- Enable resource monitoring and alerting for memory usage anomalies
The record
An allocation of resources without limits or throttling in Elasticsearch can lead to an OutOfMemoryError exception resulting in a crash via a specially crafted query using an SQL function.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Maven | org.elasticsearch:elasticsearch | 0 | 7.17.21 |
| Maven | org.elasticsearch:elasticsearch | 8.0.0 | 8.13.3 |
| Bitnami | elasticsearch | 7.17.0 | 7.17.21 |
| maven | org.elasticsearch/elasticsearch | 8.0.0 | 8.13.3 |
Related vulnerabilities
- CVE-2025-37731 Improper Authentication in Elasticsearch PKI realm can lead to user impersonation via… Also affects org.elasticsearch:elasticsearch
- CVE-2025-37727 Elasticsearch: Insertion of Sensitive Information into Log File via reindex API Also affects org.elasticsearch:elasticsearch
- CVE-2024-52979 Elasticsearch Uncontrolled Resource Consumption Vulnerability Also affects org.elasticsearch:elasticsearch
- CVE-2024-52981 Elasticsearch Vulnerable to Stack Overflow due to a Large Recursion Also affects org.elasticsearch:elasticsearch
- CVE-2024-12539 Elasticsearch Incorrect Authorization vulnerability Also affects org.elasticsearch:elasticsearch
- CVE-2024-23444 It was discovered by Elastic engineering that when elasticsearch-certutil CLI tool is… Also affects org.elasticsearch:elasticsearch
- CVE-2023-49921 An issue was discovered by Elastic whereby Watcher search input logged the search query… Also affects org.elasticsearch:elasticsearch
- CVE-2024-37280 A flaw was discovered in Elasticsearch, affecting document ingestion when an index… Also affects org.elasticsearch:elasticsearch