CVE-2023-23612 json
Issue with whitespace in JWT roles in OpenSearch
published 2023-01-24 3 y ago modified 2026-06-17 4 mo ago also GHSA-864v-6qj7-62qj , EUVD-2023-0397
- cvss
- 4.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 57%
- public exploits
- 0
- none known
Summary
OpenSearch is an open source distributed and RESTful search engine. 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. OpenSearch 1.0.0-1.3.7 and 2.0.0-2.4.1 are affected. Users are advised to upgrade to OpenSearch 1.3.8 or 2.5.0. There are no known workarounds for this issue.
Patch / fix
- maven org.opensearch.plugin:opensearch-security 1.3.8, 2.5.0
- amazon opensearch 1.3.8, 2.5.0
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 19 mo ago
Exploit prediction
0.83% chance of exploitation in the next 30 days, higher than 57% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.7 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 4.7 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.opensearch.plugin:opensearch-security | <1.3.8 >=2.0.0, <2.5.0 |
1.3.8 2.5.0 |
Affected products
- opensearch-project security
Classification
References
-
github.com
/opensearch-project/security/security/advisories/GHSA-864v-6qj7-62qj
web, third-party-advisory
-
github.com
/opensearch-project/OpenSearch/releases/tag/2.5.0
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-23612
advisory
-
github.com
/opensearch-project/security
package
Sources
- CVE List CVE-2023-23612
- GitHub Advisory GHSA-864v-6qj7-62qj
- NVD CVE-2023-23612
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.