CVE-2026-35563

Apache · Directory LDAP API

The Apache Directory LDAP API client fails to verify the hostname during TLS certificate validation, enabling man-in-the-middle attacks.

Executive summary

Apache Directory LDAP API is vulnerable to man-in-the-middle attacks because it does not properly verify LDAP server hostnames during the handshake.

Vulnerability

This is a high-severity vulnerability (CWE-297) where the client validates the certificate chain but fails to confirm that the certificate matches the specific LDAP hostname. This allows an attacker to present a valid certificate for a different server to impersonate the legitimate LDAP server.

Business impact

With a CVSS score of 8.5, this flaw allows attackers to intercept or manipulate LDAP traffic. This can lead to the exposure of credentials, unauthorized access to directory services, or the compromise of authentication flows within the enterprise network.

Remediation

Immediate Action: Upgrade to the latest available version of the Apache Directory LDAP API that enforces strict hostname verification.

Proactive Monitoring: Monitor for suspicious LDAP traffic patterns or certificate mismatch alerts if your monitoring tools are capable of inspecting encrypted traffic.

Compensating Controls: Ensure that all LDAP traffic is routed through encrypted tunnels or use mutual TLS (mTLS) with strict certificate pinning where supported.

Exploitation status

Public Exploit Available: false

Analyst recommendation

The failure to verify hostnames in security-critical libraries is a significant oversight. Organizations relying on Apache Directory LDAP API should update their dependencies immediately to ensure proper hostname validation is in place and to secure their authentication infrastructure.