CVE-2026-35563

High

Description

It was identified that the LDAP client implementation in version 2.1.7 does not verify if the server certificate matches the intended LDAP hostname. While the underlying code validates the certificate chain against a trusted authority, the absence of endpoint identification allows a valid certificate issued for an entirely unrelated host to be improperly accepted. This oversight leaves the connection highly vulnerable to server impersonation and complete connection compromise. The root cause of this vulnerability lies in the incomplete TLS server identity verification within the LDAP client implementation. The attacker requires MITM capability on the network to exploit this vulnerability. This attacker must be able to present a certificate trusted by the client's configured trust store. The hostname verification has been enforced in the new version of the LDAP API

SeverityHigh
CVSS8.5
Exploit probability—
ProductApache Directory Ldap Api
PublishedJun 1, 2026
First seenJun 1, 2026
Weakness typeCWE-297CWE-297

How to fix

Update
  • apache directory_ldap_api2.1.7 or later
  • org.apache.directory.api:api-ldap-client-api2.1.8 or later

Affected products

ProductAffected versionsFixed in
apache directory_ldap_api2.0.0 ≤ v < 2.1.72.1.7
org.apache.directory.api:api-ldap-client-apiMaven2.0.0 ≤ v < 2.1.82.1.8

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.