Improper Validation of Certificate with Host Mismatch Affecting org.apache.directory.api:api-ldap-client-api package, versions [2.0.0,2.1.8)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Social Trends
EPSS
0.18% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGAPACHEDIRECTORYAPI-17157405
  • published4 Jun 2026
  • disclosed1 Jun 2026
  • creditRafał Łykowski, Łukasz Kollbek

Introduced: 1 Jun 2026

CVE-2026-35563  (opens in a new tab)
CWE-297  (opens in a new tab)

How to fix?

Upgrade org.apache.directory.api:api-ldap-client-api to version 2.1.8 or higher.

Overview

org.apache.directory.api:api-ldap-client-api is a LDAP Client API.

Affected versions of this package are vulnerable to Improper Validation of Certificate with Host Mismatch in the TLS server identity verification. An attacker can intercept and impersonate the server by presenting a certificate trusted by the client's configured trust store, potentially leading to complete compromise of the connection. This is only exploitable if the attacker has man-in-the-middle capability on the network and can present a certificate trusted by the client.

CVSS Base Scores

version 4.0
version 3.1