PT-2023-19074 · Unknown+1 · Opensearch+1

Cehenkle

·

Published

2023-01-24

·

Updated

2025-04-03

·

CVE-2023-23612

CVSS v2.0

9.0

High

VectorAV:N/AC:L/Au:S/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions OpenSearch versions 1.0.0 through 1.3.7 OpenSearch versions 2.0.0 through 2.4.1
Description 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.
Recommendations Upgrade to OpenSearch 1.3.8 for versions 1.0.0 through 1.3.7. Upgrade to OpenSearch 2.5.0 for versions 2.0.0 through 2.4.1.

Exploit

Fix

Improper Privilege Management

Improper Authentication

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BDU:2025-04295
CVE-2023-23612
GHSA-864V-6QJ7-62QJ

Affected Products

Opensearch
Red Os