Vulnerabilities in pkg:maven/org.opensearch.plugin/opensearch-security

PACKAGE
Advisory Summary

GHSA-x5hg-x4gv-j98m is a LOW (CVSS 2.2) opensearch has ineffective tls certificate vulnerability (CWE-295: Improper Certificate Validation) affecting Opensearch security libraries in the Maven ecosystem. The issue involves opensearch has ineffective tls certificate hostname verification. Remediation is available by upgrading affected packages to version 2.19.4.0, 3.3.0.0.

14 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.opensearch.plugin/opensearch-security

14 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.opensearch.plugin/opensearch-security. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-x5hg-x4gv-j98m - LOW OpenSearch has ineffective TLS certificate hostname verification
GHSA-x83w-23jp-g6pw - MODERATE OpenSearch Security plugin: DLS not applied on documents linked by has_child or has_parent relation
GHSA-22vx-2x23-98w6 - LOW OpenSearch vulnerable to improper authorization for Rollover Requests
GHSA-83x9-vc3c-hghc - LOW OpenSearch has a bypass of REST Layer Authorization Using Malformed Paths
GHSA-2rjv-cv85-xhgm - MODERATE OpenSearch unauthorized data access on fields protected by field level security if field is a member of an object
GHSA-rrmm-wq7q-h4v5 - MODERATE OpenSearch unauthorized data access on fields protected by field masking for fields of type ip, geo_point, geo_shape, xy_point, xy_shape
GHSA-864v-6qj7-62qj CVE-2023-23612 MODERATE Issue with whitespace in JWT roles in OpenSearch
GHSA-v3cg-7r9h-r2g6 CVE-2023-23613 MODERATE Field-level security issue with .keyword fields in OpenSearch
GHSA-72q2-gwwf-6hrv CVE-2023-45807 MODERATE OpenSearch Issue with tenant read-only permissions
GHSA-8wx3-324g-w4qq - HIGH OpenSearch uncontrolled resource consumption
GHSA-g8xc-6mf7-h28h CVE-2023-31141 MODERATE OpenSearch issue with fine-grained access control during extremely rare race conditions
GHSA-wmx7-x4jp-9jgg CVE-2022-41918 MODERATE OpenSearch has issue with fine-grained access control of indices backing data streams
GHSA-c6wg-cm5x-rqvj CVE-2023-25806 MODERATE OpenSearch has time discrepancy in authentication responses
GHSA-f4qr-f4xx-hjxw CVE-2022-35980 HIGH OpenSearch vulnerable to Improper Authorization of Index Containing Sensitive Information

GHSA-x5hg-x4gv-j98m at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-x5hg-x4gv-j98m
Severity LOW
CVSS v3.1 Base Score 2.2
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Opensearch security
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 2.2

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix GHSA-x5hg-x4gv-j98m

To remediate this vulnerability, upgrade all affected Opensearch security dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.opensearch.plugin:opensearch-security fixed: 2.19.4.0
<dependency>
    <groupId>org.opensearch.plugin</groupId>
    <artifactId>opensearch-security</artifactId>
    <version>2.19.4.0</version>
</dependency>
org.opensearch.plugin:opensearch-security fixed: 3.3.0.0
<dependency>
    <groupId>org.opensearch.plugin</groupId>
    <artifactId>opensearch-security</artifactId>
    <version>3.3.0.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.opensearch.plugin

How to Check if You Are Affected

To determine whether your Java application is affected by GHSA-x5hg-x4gv-j98m, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.opensearch.plugin

Analyze the terminal output to locate any version of Opensearch security in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.19.4.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.opensearch.plugin command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Opensearch security, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Description A regression was introduced in OpenSearch 2.18.0 that caused the `plugins.security.ssl.transport.enforce_hostname_verification` setting to be ineffective. When this setting was enabled, OpenSearch did not verify that the hostname in a connecting node's TLS certificate matched the hostname of the connection. This could allow a node with a valid certificate (signed by the cluster's trusted CA) but an incorrect hostname SAN to join the cluster. ### Impact Clusters running affected versions with hostname verification enabled did not receive the expected protection from this setting. A node presenting a certificate signed by the cluster's trusted CA could join the cluster regardless of whether its hostname SAN matched. This regression does not affect certificate validation itself — only the additional hostname verification check. ### Patches This issue is fixed in OpenSearch 2.19.4 and 3.3.0. ### Workarounds Use more restrictive values for `plugins.security.nodes_dn` to limit which certificates are accepted for node-to-node communication.

GHSA-x5hg-x4gv-j98m Affected Opensearch security Versions

2 component(s)
Fixed Versions:
2.19.4.03.3.0.0
Product / Package Ecosystem Affected Versions Fixed Version
org.opensearch.plugin:opensearch-security
Maven
≥ 2.18.0
< 2.19.4.0
2.19.4.0
org.opensearch.plugin:opensearch-security
Maven
≥ 3.0.0
< 3.3.0.0
3.3.0.0

References

Frequently Asked Questions

What is GHSA-x5hg-x4gv-j98m?
GHSA-x5hg-x4gv-j98m is a security vulnerability in Opensearch security involving OpenSearch has ineffective TLS certificate hostname verification under CWE-295: Improper Certificate Validation.
Which Opensearch security versions are affected?
Affected versions include releases prior to 2.19.4.0, 3.3.0.0 across affected packages: org.opensearch.plugin:opensearch-security.
What version fixes GHSA-x5hg-x4gv-j98m?
Upgrading to 2.19.4.0, 3.3.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is opensearch-security affected?
Yes, org.opensearch.plugin:opensearch-security is affected in releases prior to 2.19.4.0, 3.3.0.0. Upgrade your dependency to 2.19.4.0, 3.3.0.0 or later.
What is the CVSS score of GHSA-x5hg-x4gv-j98m?
GHSA-x5hg-x4gv-j98m has a CVSS v3.1 base score of 2.2 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with GHSA-x5hg-x4gv-j98m?
GHSA-x5hg-x4gv-j98m is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check Maven dependencies for GHSA-x5hg-x4gv-j98m?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.opensearch.plugin'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-x5hg-x4gv-j98m",
  "modified" : "2026-05-07T00:09:18Z",
  "published" : "2026-05-07T00:09:18Z",
  "aliases" : [ ],
  "summary" : "OpenSearch has ineffective TLS certificate hostname verification",
  "details" : "### Description\n\nA regression was introduced in OpenSearch 2.18.0 that caused the `plugins.security.ssl.transport.enforce_hostname_verification` setting to be ineffective. When this setting was enabled, OpenSearch did not verify that the hostname in a connecting node's TLS certificate matched the hostname of the connection. This could allow a node with a valid certificate (signed by the cluster's trusted CA) but an incorrect hostname SAN to join the cluster.\n\n### Impact\n\nClusters running affected versions with hostname verification enabled did not receive the expected protection from this setting. A node presenting a certificate signed by the cluster's trusted CA could join the cluster regardless of whether its hostname SAN matched. This regression does not affect certificate validation itself — only the additional hostname verification check.\n\n### Patches\n\nThis issue is fixed in OpenSearch 2.19.4 and 3.3.0.\n\n### Workarounds\n\nUse more restrictive values for `plugins.security.nodes_dn` to limit which certificates are accepted for node-to-node communication.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.opensearch.plugin:opensearch-security"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.18.0"
      }, {
        "fixed" : "2.19.4.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.opensearch.plugin:opensearch-security"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.3.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/opensearch-project/security/security/advisories/GHSA-x5hg-x4gv-j98m"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/opensearch-project/security"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-07T00:09:18Z",
    "nvd_published_at" : null
  }
}