Privilege Context Switching Error in Elasticsearch
Elasticsearch versions before 6.8.13 and 7.9.2 contain a document disclosure flaw when Document or Field Level Security is used. Search queries do not properly preserve security permissions when executing certain complex 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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.elasticsearch:elasticsearch | < 6.8.13, >= 7.0.0, < 7.9.2 | 6.8.13, 7.9.2 |
References
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N- Weakness (CWE)
CWE-269, CWE-270- Platform
- Java / Kotlin (Maven)
- Package
org.elasticsearch:elasticsearch- Disclosed
- 18.03.2021
- Updated
- 11.10.2026 12:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-g9fw-9x87-rmrj - CC BY 4.0
Vulnerability history: org.elasticsearch:elasticsearch
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 40
- First → latest
- 03.2021 05.2025
- Without a fix
- 0
- Exploited in attacks
- 2
Severity breakdown
- High 8
- Medium 31
- Low 1
Disclosures per year
- 2021: 7
- 2022: 19
- 2023: 4
- 2024: 7
- 2025: 3
- 2026: 0
-
Privilege Context Switching Error in Elasticsearch this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.