CVE-2026-35563
Description
Apache Directory LDAP API client up to 2.1.7 accepts any valid TLS certificate, enabling MITM server impersonation.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Apache Directory LDAP API client up to 2.1.7 accepts any valid TLS certificate, enabling MITM server impersonation.
Vulnerability
The Apache Directory LDAP API client implementation, in versions 2.0.0 through 2.1.7, fails to verify that the TLS server certificate matches the intended LDAP hostname [1]. The code checks the certificate chain against a trusted authority, but does not perform hostname validation, allowing a certificate issued for any other valid domain to be accepted for the LDAP connection [1].
Exploitation
An attacker with man-in-the-middle (MITM) access to the network can present an arbitrary TLS certificate that chains to a trust anchor in the client's trust store [1]. No authentication or user interaction beyond establishing the LDAP connection is required. The attacker simply intercepts the LDAP TLS handshake and supplies a legitimate certificate for an unrelated host, which will be accepted due to the missing hostname check.
Impact
Successful exploitation allows the attacker to impersonate the intended LDAP server. All data transmitted over the connection, including authentication credentials and directory content, can be intercepted, modified, or completely compromised [1]. The client’s trust in the server is fully undermined, leading to disclosure of sensitive information and potential unauthorized actions.
Mitigation
The hostname verification has been enforced in a new version of the LDAP API [1]. Users should upgrade to the fixed release as soon as it is available. The advisory does not specify the exact fixed version number, but it is recommended to update beyond 2.1.7. No workarounds are documented in the available reference.
AI Insight generated on Jun 1, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
1- Range: = 2.1.7
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
2News mentions
0No linked articles in our index yet.