CVE-2021-22135Elasticsearch
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.3% probability of exploitation in 30 days · percentile 72
- Auth required
- No
- Published
- May 13, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-200
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
What happens
Elasticsearch versions before 7.11.2 and 6.8.15 contain a document disclosure flaw was found in the Elasticsearch suggester and profile API when Document and Field Level Security are enabled. The suggester and profile API are normally disabled for an index when document level security is enabled on the index. Certain queries are able to enable the profiler and suggester which could lead to disclosing the existence of documents and fields the attacker should not be able to view.
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.0.0 < 7.11.2 |
7.11.2 |
— |
| Maven | org.elasticsearch:elasticsearch |
< 6.8.15 |
6.8.15 |
— |
Per OSV / GitHub Advisories (GHSA-62ww-4p3p-7fhj). 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