5.7medium
Field-level security issue with .keyword fields in OpenSearch
- Severity
- 5.7medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.76% (higher than 52% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-v3cg-7r9h-r2g6
Description
OpenSearch is an open source distributed and RESTful search engine. In affected versions there is an issue in the implementation of field-level security (FLS) and field masking where rules written to explicitly exclude fields are not correctly applied for certain queries that rely on their auto-generated .keyword fields. This issue is only present for authenticated users with read access to the indexes containing the restricted fields. This may expose data which may otherwise not be accessible to the user. OpenSearch 1.0.0-1.3.7 and 2.0.0-2.4.1 are affected. Users are advised to upgrade to OpenSearch 1.3.8 or 2.5.0. Users unable to upgrade may write explicit exclusion rules as a workaround. Policies authored in this way are not subject to this issue.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| opensearch-project security | >= 2.0.0, < 2.5.0, < 1.3.8 | CVE List |
| org.opensearch.plugin:opensearch-security (Maven) | before 1.3.8, from 2.0.0 before 2.5.0 | GitHub Advisory Database |
| amazon opensearch | from 1.0.0 before 1.3.8, from 2.0.0 before 2.5.0 | NVD |
All scores
| GitHub_M | 5.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |
| GitHub | 5.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
OpenSearch is an open source distributed and RESTful search engine. In affected versions there is an issue in the implementation of field-level security (FLS) and field masking where rules written to explicitly exclude fields are not correctly applied for certain queries that rely on their auto-generated .keyword fields. This issue is only present for authenticated users with read access to the indexes containing the restricted fields. This may expose data which may otherwise not be accessible to the user. OpenSearch 1.0.0-1.3.7 and 2.0.0-2.4.1 are affected. Users are advised to upgrade to OpenSearch 1.3.8 or 2.5.0. Users unable to upgrade may write explicit exclusion rules as a workaround. Policies authored in this way are not subject to this issue.
GitHub Advisory Database
Advisory title: Field-level security issue with .keyword fields
Affected versions:
OpenSearch 1.0.0-1.3.7 and 2.0.0-2.4.1
Patched versions:
OpenSearch 1.3.8 and 2.5.0
Impact:
There is an issue in the implementation of field-level security (FLS) and field masking where rules written to explicitly exclude fields are not correctly applied for certain queries that rely on their auto-generated .keyword fields.
This issue is only present for authenticated users with read access to the indexes containing the restricted fields.
Workaround:
FLS rules that use explicit exclusions can be written to grant explicit access instead. Policies authored in this way are not subject to this issue.
Patches:
OpenSearch versions 1.3.8 and 2.5.0 contain a fix for this issue.
For more information:
If you have any questions or comments about this advisory, please contact AWS/Amazon Security via our issue reporting page (https://aws.amazon.com/security/vulnerability-reporting/) or directly via email to aws-security@amazon.com. Please do not create a public GitHub issue.
NVD (es)
OpenSearch es un motor de búsqueda RESTful y distribuido de código abierto. En las versiones afectadas hay un problema en la implementación de la seguridad a nivel de campo (FLS) y el enmascaramiento de campos donde las reglas escritas para excluir campos explícitamente no se aplican correctamente para ciertas consultas que dependen de sus campos .keyword generados automáticamente. Este problema solo está presente para usuarios autenticados con acceso de lectura a los índices que contienen los campos restringidos. Esto puede exponer datos a los que de otra manera el usuario no podría acceder. OpenSearch 1.0.0-1.3.7 y 2.0.0-2.4.1 se ven afectados. Se recomienda a los usuarios que actualicen a OpenSearch 1.3.8 o 2.5.0. Los usuarios que no puedan actualizar pueden escribir reglas de exclusión explícitas Como workaround. Las políticas creadas de esta manera no están sujetas a esta cuestión.
References
| https://github.com/opensearch-project/security/security/advisories/GHSA-v3cg-7r9h-r2g6 | third-party-advisory, web | |
| https://github.com/opensearch-project/OpenSearch/releases/tag/2.5.0 | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-23613 | advisory | |
| https://github.com/opensearch-project/security | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-23613 changed 2025-03-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-v3cg-7r9h-r2g6 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2023-23613 changed 2026-06-17 | Public domain |