CVE-2021-22137
MEDIUM 5.3CVSS 3.1Exposure of Sensitive Information to an Unauthorized Actor in Elasticsearch
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.
- Published
- 13 May 2021
- Last modified
- 17 Jun 2026
- Assigned by
- security@elastic.co
- NVD status
- Modified
- Weakness
- CWE-200CWE-281
- Also known as
- BIT-elasticsearch-2021-22137GHSA-hr65-qq6p-87r4
- Sources
- NVDJSONOSV GHSA-hr65-qq6p-87r4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | elastic | elasticsearchcpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:* |
< 6.8.15 | 6.8.15 |
| NVD | elastic | elasticsearchcpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:* |
>= 7.11.0, < 7.11.2 | 7.11.2 |
| OSV | Maven | org.elasticsearch:elasticsearch | >= 7.11.0, < 7.11.2 | 7.11.2 |
| OSV | Maven | org.elasticsearch:elasticsearch | < 6.8.15 | 6.8.15 |
References
- https://discuss.elastic.co/t/elastic-stack-7-12-0-and-6-8-15-security-update/268125 · Vendor Advisory, WEB
- https://security.netapp.com/advisory/ntap-20210625-0003/ · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-22137 · ADVISORY
- https://github.com/elastic/elasticsearch · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 13 May 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 May 2022)