CVE-2021-22147 Exposure of sensitive information in Elasticsearch
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.
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.
| Package | Affected | Fixed in |
|---|---|---|
org.elasticsearch:elasticsearch Maven | From 7.11.0 | 7.14.0 |
org.elasticsearch:elasticsearch Maven | From 7.11.0 | 7.14.0 |
elasticsearch Bitnami | From 7.11.0 | 7.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.
Other vulnerabilities in Elastic Elasticsearch
- CVE-2015-1427 Elasticsearch Groovy Scripting Engine Remote Code Execution
- CVE-2014-3120 Elasticsearch Remote Code Execution
- CVE-2015-5377 Code injection in n/a
- CVE-2026-72649 Deserialization of Untrusted Data in Elasticsearch Leading to Remote Code Execution
- CVE-2026-72642 Use of Out-of-range Pointer Offset in the Elasticsearch Machine Learning Native Inference Process
Sources
Also known as BIT-elasticsearch-2021-22147, GHSA-45h5-r968-5xr7, UBUNTU-CVE-2021-22147.