VDB
Sign up
MEDIUM5.7

GHSA-rrmm-wq7q-h4v5

OpenSearch unauthorized data access on fields protected by field masking for fields of type ip, geo_point, geo_shape, xy_point, xy_shape

Quick fix

GHSA-rrmm-wq7q-h4v5 — org.opensearch.plugin:opensearch-security: upgrade to the fixed version with the command below.

# pom.xml: bump <version>2.19.3.0</version> for org.opensearch.plugin:opensearch-security

Details

### Impact

OpenSearch versions 2.19.2 and earlier improperly apply field masking rules on fields of the types `ip`, `geo_point`, `geo_shape`, `xy_point`, `xy_shape`. While the content of these fields is properly redacted in the `_source` document returned by search operations, the original unredacted values remain available to search queries. This allows to reconstruct the original field contents using range queries.

Additionally, the content of fields of type `geo_point`, `geo_shape`, `xy_point`, `xy_shape` is returned in an unredacted form if requested via the `fields` option of the search API.

### Patches

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

### Workarounds

If you cannot upgrade immediately, you can avoid the problem by using field level security (FLS) protection on fields of the affected types instead of field masking.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.opensearch.plugin:opensearch-security
Introduced in: 0Fixed in: 2.19.3.0
Fix# pom.xml: bump <version>2.19.3.0</version> for org.opensearch.plugin:opensearch-security

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:maven/org.opensearch.plugin/opensearch-security"]}'