{"id":"GHSA-85rw-g4f4-jprr","summary":"Apache Directory LDAP API lacks server certificate verification for LDAP hostnames","details":"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.\n\nThe root cause of this vulnerability lies in the incomplete TLS server identity verification within the LDAP client implementation.\n\nThe 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.\n\nThe hostname verification has been enforced in the new version of the LDAP API.","aliases":["CVE-2026-35563"],"modified":"2026-07-08T00:11:30.848570Z","published":"2026-06-01T09:31:11Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2026-07-07T23:46:48Z","nvd_published_at":"2026-06-01T08:16:20Z","cwe_ids":["CWE-297"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35563"},{"type":"WEB","url":"https://github.com/apache/directory-ldap-api/commit/57a7726d8b6436c74945c12f5ba4e12d232d2bac"},{"type":"PACKAGE","url":"https://github.com/apache/directory-ldap-api"},{"type":"WEB","url":"https://lists.apache.org/thread/5rc2nzqxp1m9wknyf93r8dnp46fhc1nn"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2026/06/01/2"}],"affected":[{"package":{"name":"org.apache.directory.api:api-ldap-client-api","ecosystem":"Maven","purl":"pkg:maven/org.apache.directory.api/api-ldap-client-api"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.1.8"}]}],"versions":["2.0.0","2.0.0.AM1","2.0.0.AM2","2.0.0.AM3","2.0.0.AM4","2.0.1","2.0.2","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.1.5","2.1.6","2.1.7"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-85rw-g4f4-jprr/GHSA-85rw-g4f4-jprr.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:H/SI:L/SA:L"}]}