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

Not scored Published

Attackers with low privileges can bypass Field Level Security to read protected nested data in OpenSearch if specific exclusion rules are used.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-2rjv-cv85-xhgm?

GHSA-2rjv-cv85-xhgm is a missing authorization vulnerability in org.opensearch.plugin:opensearch-security, published on 1 Aug 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.*).

Which versions are affected by GHSA-2rjv-cv85-xhgm?

2 open source packages ship an affected version, including org.opensearch.plugin:opensearch-security.

PackageAffectedFixed in
org.opensearch.plugin:opensearch-security MavenAll versions2.19.3.0
org.opensearch.plugin:opensearch-security MavenAll versions2.19.3.0

How do I fix GHSA-2rjv-cv85-xhgm?

Upgrade org.opensearch.plugin:opensearch-security to 2.19.3.0 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is GHSA-2rjv-cv85-xhgm being exploited?

There is no known exploitation of GHSA-2rjv-cv85-xhgm in the wild and no public exploit code.

Sources

Is GHSA-2rjv-cv85-xhgm in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free