CVE-2024-52979 Elasticsearch Uncontrolled Resource Consumption vulnerability

Medium 6.5 Published Updated

Attackers can crash Elasticsearch nodes by submitting crafted search templates with Mustache functions, causing denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-52979?

CVE-2024-52979 is a medium-severity denial of service vulnerability in Elastic Elasticsearch, published on 1 May 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Uncontrolled Resource Consumption in Elasticsearch while evaluating specifically crafted search templates with Mustache functions can lead to Denial of Service by causing the Elasticsearch node to crash.

Weakness: CWE-400

Which versions are affected by CVE-2024-52979?

5 open source packages ship an affected version, including org.elasticsearch:elasticsearch and elasticsearch. It affects 1 product.

PackageAffectedFixed in
org.elasticsearch:elasticsearch MavenAll versions7.17.25
org.elasticsearch:elasticsearch MavenAll versions7.17.25
org.elasticsearch:elasticsearch MavenFrom 8.0.0-alpha18.16.0
org.elasticsearch:elasticsearch MavenFrom 8.0.0-alpha18.16.0
elasticsearch BitnamiFrom 7.17.07.17.25, 8.16.0

Products include Elastic Elasticsearch.

How do I fix CVE-2024-52979?

Upgrade org.elasticsearch:elasticsearch to a fixed version for your release line: 7.17.25 or 8.16.0.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-52979 being exploited?

There is no known exploitation of CVE-2024-52979 in the wild and no public exploit code.

All Elastic Elasticsearch vulnerabilities

Sources

Also known as BIT-elasticsearch-2024-52979, GHSA-mm3m-5497-xggg, MINI-5q9r-v4q2-w7fr, MINI-q68r-h3pg-gmhm, MINI-qcv7-xf5c-p7pq, UBUNTU-CVE-2024-52979.

Is CVE-2024-52979 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free