CVE-2021-22147 Exposure of sensitive information in Elasticsearch

Medium 6.5 Published Updated

Authenticated users can bypass document and field level security in searchable snapshots to view unauthorized data.

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-22147?

CVE-2021-22147 is a medium-severity missing authorization vulnerability in Elastic Elasticsearch, published on 15 Sep 2021. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Elasticsearch before 7.14.0 did not apply document and field level security to searchable snapshots. This could lead to an authenticated user gaining access to information that they are unauthorized to view.

Weakness: CWE-862, CWE-732

Which versions are affected by CVE-2021-22147?

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

PackageAffectedFixed in
org.elasticsearch:elasticsearch MavenFrom 7.11.07.14.0
org.elasticsearch:elasticsearch MavenFrom 7.11.07.14.0
elasticsearch BitnamiFrom 7.11.07.14.0

Products include Elastic Elasticsearch.

How do I fix CVE-2021-22147?

Upgrade org.elasticsearch:elasticsearch to 7.14.0 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2021-22147 being exploited?

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

All Elastic Elasticsearch vulnerabilities

Sources

Also known as BIT-elasticsearch-2021-22147, GHSA-45h5-r968-5xr7, UBUNTU-CVE-2021-22147.

Is CVE-2021-22147 in your software?

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

Check your SBOMs for free