# CVE-2026-35563: Apache Directory LDAP API: LDAP client implementation does not verify if the server certificate matches the intended LDAP hostname

- Severity: High 8.8 (CVSS:4.0, scored by apache) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-06-01T07:12:05.815Z
- Modified: 2026-07-22T07:10:00.107Z
- Also known as: GHSA-85rw-g4f4-jprr
- Weaknesses: CWE-297
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: apache

## 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

(As written by CVE List.)

## Affected

- org.apache.directory.api:api-ldap-client-api: from 2.0.0 up to 2.1.7
- org.apache.directory.api:api-ldap-client-api (Maven): from 2.0.0 before 2.1.8
- apache directory_ldap_api: from 2.0.0 before 2.1.7

## Every score

- apache: CVSS:4.0 8.8 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://lists.apache.org/thread/5rc2nzqxp1m9wknyf93r8dnp46fhc1nn> (mailing-list, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2026/06/01/2> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-35563> (advisory)
- <https://github.com/apache/directory-ldap-api/commit/57a7726d8b6436c74945c12f5ba4e12d232d2bac> (web)
- <https://github.com/apache/directory-ldap-api> (package)

## Sources

- CVE List: [CVE-2026-35563](https://www.cve.org/CVERecord?id=CVE-2026-35563), CVE Terms of Use, modified 2026-06-01
- GitHub Advisory Database: [GHSA-85rw-g4f4-jprr](https://github.com/advisories/GHSA-85rw-g4f4-jprr), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2026-35563](https://nvd.nist.gov/vuln/detail/CVE-2026-35563), Public domain, modified 2026-07-22

---

Page: https://cve.day/CVE-2026-35563 · Whole record: https://cve.day/CVE-2026-35563.json · Rebuilt by cve.day 2026-11-25T22:59:23.417Z
