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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Attack requirements: Present; Privileges required: Low; User interaction: None; Confidentiality impact: High; Integrity impact: High; Availability impact: None; Confidentiality impact on other systems: High; Integrity impact on other systems: Low; Availability impact on other systems: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **CWE:** CWE-297
- **Aliases:** GHSA-85rw-g4f4-jprr
- **Published:** 2026-06-01T07:12:05.815Z
- **Modified:** 2026-07-22T07:10:00.107Z

## Who should check

- Projects that depend on Maven package org.apache.directory.api:api-ldap-client-api (\>= 2.0.0, \< 2.1.8)
- Anyone running Apache Software Foundation Apache Directory LDAP API \>= 2.0.0, \<= 2.1.7

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

## Affected and fixed versions

- Maven `org.apache.directory.api:api-ldap-client-api`: affected \>= 2.0.0, \< 2.1.8; fixed 2.1.8 (osv)
- Apache Software Foundation Apache Directory LDAP API: \>= 2.0.0, \<= 2.1.7 (cvelist)

## Mitigation

- Upgrade org.apache.directory.api:api-ldap-client-api to 2.1.8 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-35563. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-35563.md
Affected: org.apache.directory.api:api-ldap-client-api >= 2.0.0, < 2.1.8
Fixed in: 2.1.8

Steps:
1. Search this machine and project for org.apache.directory.api:api-ldap-client-api (Maven), Apache Software Foundation Apache Directory LDAP API: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-35563 being exploited?

There is no confirmed exploitation: CVE-2026-35563 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-35563?

High: CVSS 8.8 (v4.0, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-35563?

org.apache.directory.api:api-ldap-client-api \>= 2.0.0, \< 2.1.8.

### Is there a fix for CVE-2026-35563?

Yes. Fixed in 2.1.8. Upgrade org.apache.directory.api:api-ldap-client-api to 2.1.8 or later.

### How do I check if I'm affected by CVE-2026-35563?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.apache.org/thread/5rc2nzqxp1m9wknyf93r8dnp46fhc1nn>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-35563>
- patch: <https://github.com/apache/directory-ldap-api/commit/57a7726d8b6436c74945c12f5ba4e12d232d2bac>
- other: <http://www.openwall.com/lists/oss-security/2026/06/01/2>
- other: <https://github.com/apache/directory-ldap-api>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-35563>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-85rw-g4f4-jprr> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-35563> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-35563>
