Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-23612

MEDIUM 4.7EPSS 50%

Issue with whitespace in JWT roles in OpenSearch

Also known as GHSA-864v-6qj7-62qj

Mitigation

  • Upgrade org.opensearch.plugin:opensearch-security to one of 1.3.8, 2.5.0 (or later in the same release line).

Who should check

  • Projects that depend on Maven package org.opensearch.plugin:opensearch-security (< 1.3.8)
  • Anyone running opensearch-project security >= 2.0.0, < 2.5.0; < 1.3.8

Vulnerability facts

Affected
org.opensearch.plugin:opensearch-security < 1.3.8
Fixed in
1.3.8, 2.5.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
4.7 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: High
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: Low
  • Integrity impact: Low
  • Availability impact: Low
EPSS
0.73% chance of exploitation in 30 days (percentile 50, 2026-11-26)
CWE
CWE-287
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
Maven org.opensearch.plugin:opensearch-security< 1.3.81.3.8, 2.5.0osv
opensearch-project security>= 2.0.0, < 2.5.0; < 1.3.8—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2023-23612. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-23612.md
Affected: org.opensearch.plugin:opensearch-security < 1.3.8
Fixed in: 1.3.8, 2.5.0

Steps:
1. Search this machine and project for org.opensearch.plugin:opensearch-security (Maven), opensearch-project security: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2023-23612 being exploited?

There is no confirmed exploitation: CVE-2023-23612 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.73% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2023-23612?

Medium: CVSS 4.7 (v3.1, scored by CNA). Remote, login needed.

Which versions are affected by CVE-2023-23612?

org.opensearch.plugin:opensearch-security < 1.3.8.

Is there a fix for CVE-2023-23612?

Yes. Fixed in 1.3.8, 2.5.0. Upgrade org.opensearch.plugin:opensearch-security to one of 1.3.8, 2.5.0 (or later in the same release line).

How do I check if I'm affected by CVE-2023-23612?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors