CVE-2021-22137Elasticsearch
Medium 5.3 No auth needed
Follow: this CVE · Elastic · Elasticsearch We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 68
- Auth required
- No
- Published
- May 13, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
What happens
In Elasticsearch versions before 7.11.2 and 6.8.15 a document disclosure flaw was found when Document or Field Level Security is used. Search queries do not properly preserve security permissions when executing certain cross-cluster search queries. This could result in the search disclosing the existence of documents the attacker should not be able to view. This could result in an attacker gaining additional insight into potentially sensitive indices.
What to do
- Apply the vendor's security update for Elasticsearch.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.elasticsearch:elasticsearch |
≥ 7.11.0 < 7.11.2 |
7.11.2 |
— |
| Maven | org.elasticsearch:elasticsearch |
< 6.8.15 |
6.8.15 |
— |
Per OSV / GitHub Advisories (GHSA-hr65-qq6p-87r4). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| elastic | elasticsearch | < 6.8.15 |
| elastic | elasticsearch | ≥ 7.11.0 < 7.11.2 |
Official sources
References
Links published by the sources. Open them with care.
- discuss.elastic.co Vendor Advisory
- security.netapp.com Third Party Advisory