GHSA-x5hg-x4gv-j98m: Opensearch security OpenSearch Has Ineffective TLS Certificate Vulnerability
LOWGHSA-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.
GHSA-x5hg-x4gv-j98m at a Glance
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).
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.
<dependency>
<groupId>org.opensearch.plugin</groupId>
<artifactId>opensearch-security</artifactId>
<version>2.19.4.0</version>
</dependency>
<dependency>
<groupId>org.opensearch.plugin</groupId>
<artifactId>opensearch-security</artifactId>
<version>3.3.0.0</version>
</dependency>
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
GHSA-x5hg-x4gv-j98m Affected Opensearch security Versions
2 component(s)| 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?
Which Opensearch security versions are affected?
What version fixes GHSA-x5hg-x4gv-j98m?
Is opensearch-security affected?
What is the CVSS score of GHSA-x5hg-x4gv-j98m?
What CWE is associated with GHSA-x5hg-x4gv-j98m?
How can I check Maven dependencies for GHSA-x5hg-x4gv-j98m?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}