Skip to content

[Security] Bump opensearch from 2.0.0 to 2.5.0

Bumps opensearch from 2.0.0 to 2.5.0. This update includes security fixes.

Vulnerabilities fixed

Field-level security issue with .keyword fields in OpenSearch

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:

... (truncated)

Patched versions: 2.5.0 Affected versions: >= 2.0.0, < 2.5.0

Issue with whitespace in JWT roles in OpenSearch

Advisory title: Issue with whitespace in JWT roles

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:

OpenSearch uses JWTs to store role claims obtained from the Identity Provider (IdP) when the authentication backend is SAML or OpenID Connect. There is an issue in how those claims are processed from the JWTs where the leading and trailing whitespace is trimmed, allowing users to potentially claim roles they are not assigned to if any role matches the whitespace-stripped version of the roles they are a member of.

This issue is only present for authenticated users, and it requires either the existence of roles that match, not considering leading/trailing whitespace, or the ability for users to create said matching roles. In addition, the Identity Provider must allow leading and trailing spaces in role names.

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.

Patched versions: 2.5.0 Affected versions: >= 2.0.0, < 2.5.0

Release notes

Sourced from opensearch's releases.

2.5.0

2023-01-10 Version 2.5.0 Release Notes

[2.5]

Added

  • Prevent deletion of snapshots that are backing searchable snapshot indexes (#5365)
  • Reject bulk requests with invalid actions (#5384)
  • Add max_shard_size parameter for shrink API (#5229)
  • Add experimental support for extensions (#5347), (#5518), (#5597), (#5615))
  • Add support to register settings dynamically (#5495)
  • Add auto release workflow (#5582)
  • Add CI bundle pattern to distribution download (#5348)
  • Experimental support for extended backward compatiblity in searchable snapshots (#5429)
  • Add support of default replica count cluster setting (#5610)
  • Add support for refresh level durability (#5253)
  • Add Request level Durability using Remote Translog functionality (#5757)
  • Support to fail open requests on search shard failures with weighted traffic routing (#5072)
  • Support versioning for Weighted routing apis(#5255)
  • Add support for discovered cluster manager and remove local weights (#5680)
  • Add new level to get health per awareness attribute in _cluster/health (#5694)

Changed

  • Change http code for DecommissioningFailedException from 500 to 400 (#5283)
  • Pre conditions check before updating weighted routing metadata (#4955)
  • Support remote translog transfer for request level durability (#4480)
  • Gracefully handle concurrent zone decommission action (#5542)

Deprecated

  • Refactor fuzziness interface on query builders (#5433)

Fixed

  • Fix case sensitivity for wildcard queries (#5462)
  • Apply cluster manager throttling settings during bootstrap (#5524)
  • Update thresholds map when cluster manager throttling setting is removed (#5524)
  • Fix backward compatibility for static cluster manager throttling threshold setting (#5633)
  • Fix index exclusion behavior in snapshot restore and clone APIs (#5626)
  • Fix graph filter error in search (#5665)

Dependencies

  • Bumps bcpg-fips from 1.0.5.1 to 1.0.7.1 (#5148)
  • Bumps commons-compress from 1.21 to 1.22 (#5104)
  • Bumps geoip2 from 3.0.1 to 3.0.2 in /modules/ingest-geoip (#5201)
  • Bumps gson from 2.9.0 to 2.10 in /plugins/repository-hdfs (#5184)
  • Bumps protobuf-java from 3.21.8 to 3.21.9 in /test/fixtures/hdfs-fixture (#5185)
  • Bumps gradle-extra-configurations-plugin from 7.0.0 to 8.0.0 (#5330)
  • Bumps jcodings from 1.0.57 to 1.0.58 (#5330)
  • Bumps google-http-client-jackson2 from 1.35.0 to 1.42.3 (#5330)
  • Bumps azure-core from 1.33.0 to 1.34.0 (#5330)
  • Bumps azure-core-http-netty from 1.12.4 to 1.12.7 (#5330)
  • Bumps maxmind-db from 2.0.0 to 2.1.0 (#5330)

... (truncated)

Commits
  • b8a8b6c Update release notes for v2.5 (#5839) (#5840)
  • 68d760d Reduce number of operations in RemoteFSTranslogTests.testConcurrentWriteViews...
  • 1408f81 [Bug] Update test to consider OS version > 2.5.0 where extra field into Bytes...
  • c2307fb Revert 'Added jackson dependency to server' and change extension reading (#5818)
  • db5a6b8 Add release notes for v2.5.0 (#5821)
  • 8debbed Send replicated boolean on supported versions (#5808) (#5811)
  • 15a1c0e Fix TransportReplicationActionTests (#5737) (#5807)
  • 2d8e089 Gracefully handle concurrent zone decommission action (#5542) (#5803)
  • dcafb10 [Remote Translog] Trimming based on remote segment upload and cleaning older ...
  • 9f4e169 Awareness health api rest and transport layer changes (#5788)
  • Additional commits viewable in compare view


Dependabot commands
You can trigger Dependabot actions by commenting on this MR
  • $dependabot rebase will rebase this MR
  • $dependabot recreate will recreate this MR rewriting all the manual changes and resolving conflicts

Merge request reports