CVE-2021-22144 Denial of Service in Elasticsearch

Medium 6.5 Published Updated

An attacker can crash Elasticsearch nodes by submitting malicious Grok queries, causing a 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-2021-22144?

CVE-2021-22144 is a medium-severity denial of service vulnerability in Elastic Elasticsearch, published on 26 Jul 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

In Elasticsearch versions before 7.13.3 and 6.8.17 an uncontrolled recursion vulnerability that could lead to a denial of service attack was identified in the Elasticsearch Grok parser. A user with the ability to submit arbitrary queries to Elasticsearch could create a malicious Grok query that will crash the Elasticsearch node.

Weakness: CWE-674

Which versions are affected by CVE-2021-22144?

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

PackageAffectedFixed in
org.elasticsearch:elasticsearch MavenAll versions6.8.17
org.elasticsearch:elasticsearch MavenAll versions6.8.17
org.elasticsearch:elasticsearch MavenFrom 7.0.0-alpha17.13.3
org.elasticsearch:elasticsearch MavenFrom 7.0.0-alpha17.13.3
elasticsearch BitnamiAll versions6.8.17, 7.13.3

Products include Elastic Elasticsearch, Oracle Communications Cloud Native Core Automated Test Suite.

How do I fix CVE-2021-22144?

Upgrade org.elasticsearch:elasticsearch to a fixed version for your release line: 6.8.17 or 7.13.3.

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-2021-22144 being exploited?

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

All Elastic Elasticsearch vulnerabilities

Sources

Also known as BIT-elasticsearch-2021-22144, GHSA-3393-hvrj-w7v3, UBUNTU-CVE-2021-22144.

Is CVE-2021-22144 in your software?

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

Check your SBOMs for free