# GHSA-2rjv-cv85-xhgm: OpenSearch unauthorized data access on fields protected by field level security if field is a member of an object

- Severity: Medium 5.7 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2025-08-01T18:15:03.000Z
- Modified: 2025-08-01T18:46:40.945Z
- Weaknesses: CWE-200

## Description

### Impact

OpenSearch versions 2.19.2 and earlier improperly apply Field Level Security (FLS) rules on fields which are not at the top level of the source document tree (i.e., which are members of a JSON object). 

If an FLS exclusion rule (like `~object`) is applied to an object valued attribute in a source document, the object is properly removed from the `_source` document in search and get results. However, any member attribute of that object remains available to search queries. This allows to reconstruct the original field contents using range queries. 

### Patches

The issue has been resolved in OpenSearch 3.0.0 and OpenSearch 2.19.3.

### Workarounds

If FLS exclusion rules are used for object valued attributes  (like `~object`), add an additional exclusion rule for the members of the object  (like `~object.*`).

(As written by GitHub Advisory Database.)

## Affected

- org.opensearch.plugin:opensearch-security (Maven): before 2.19.3.0

## References

- <https://github.com/opensearch-project/security/security/advisories/GHSA-2rjv-cv85-xhgm> (web)
- <https://github.com/opensearch-project/security> (package)

## Sources

- GitHub Advisory Database: [GHSA-2rjv-cv85-xhgm](https://github.com/advisories/GHSA-2rjv-cv85-xhgm), CC-BY-4.0, modified 2025-08-01

---

Page: https://cve.day/GHSA-2rjv-cv85-xhgm · Whole record: https://cve.day/GHSA-2rjv-cv85-xhgm.json · Rebuilt by cve.day 2026-11-25T22:56:26.459Z
