# GHSA-x5hg-x4gv-j98m: OpenSearch has ineffective TLS certificate hostname verification

- Severity: Low 2.2 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-05-07T00:09:18.000Z
- Modified: 2026-05-07T00:21:11.903Z
- Weaknesses: CWE-295

## Description

### 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.

(As written by GitHub Advisory Database.)

## Affected

- org.opensearch.plugin:opensearch-security (Maven): from 2.18.0 before 2.19.4.0; from 3.0.0 before 3.3.0.0

## References

- <https://github.com/opensearch-project/security/security/advisories/GHSA-x5hg-x4gv-j98m> (web)
- <https://github.com/opensearch-project/security> (package)

## Sources

- GitHub Advisory Database: [GHSA-x5hg-x4gv-j98m](https://github.com/advisories/GHSA-x5hg-x4gv-j98m), CC-BY-4.0, modified 2026-05-07

---

Page: https://cve.day/GHSA-x5hg-x4gv-j98m · Whole record: https://cve.day/GHSA-x5hg-x4gv-j98m.json · Rebuilt by cve.day 2026-11-25T22:56:29.238Z
