You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CVE-2026-35563: LDAP client implementation in version 2.1.7 does not verify if the server certificate matches the intended LDAP hostname #50785
CVE-2026-35563 is present in Keycloak's development dependencies. As housekeeping, this should be updated.
Unfortunately it is a transitive dependency to ApacheDS. Updating just the dependency breaks ApacheDS 2.0.0.AM26. Updating to 2.0.0.AM27 breaks out tests as the Kerberos functionality was removed.
An attempt to update it in #50786 failed attempting this. New ideas needed.
This CVE does not affect the Keycloak distribution. Keycloak's production LDAP integration relies on JNDI, not the Apache Directory client API (api-ldap-client-api). The vulnerable jar is only pulled in by the embedded ApacheDS server used in our LDAP/Kerberos integration tests and is not shipped with Keycloak.
That said, removing the vulnerable dependency from the build entirely is not straightforward:
Bumping just api-ldap-client-api to 2.1.8 is not possible as it's incompatible with ApacheDS 2.0.0.AM26.
Excluding this dependency it is also not an option since ApacheDS uses it at runtime.
The only path that eliminates the vulnerable dependency in any capacity is upgrading to ApacheDS 2.0.0.AM27 (which pulls in api-ldap-client-api 2.1.8). However, AM27 removed the apacheds-protocol-kerberos module entirely, so the embedded KDC server used by our Kerberos tests has to be restructured to use Apache Kerby's KdcServer instead. This also requires updating the LDIF files to work with Kerby's expectations.
I've spent some time in the last couple of days trying to get LDAP and Kerberos tests running with AM27 - after almost rewriting the KerberosEmbeddedServer I think I might have been able to get it done. I will send a draft PR to see how the CI goes with all the changes.
Activity
sguilhen commentedon Jul 23, 2026
This CVE does not affect the Keycloak distribution. Keycloak's production LDAP integration relies on JNDI, not the Apache Directory client API (
api-ldap-client-api). The vulnerable jar is only pulled in by the embedded ApacheDS server used in our LDAP/Kerberos integration tests and is not shipped with Keycloak.That said, removing the vulnerable dependency from the build entirely is not straightforward:
api-ldap-client-apito2.1.8is not possible as it's incompatible withApacheDS 2.0.0.AM26.The only path that eliminates the vulnerable dependency in any capacity is upgrading to
ApacheDS 2.0.0.AM27(which pulls inapi-ldap-client-api 2.1.8). However,AM27removed theapacheds-protocol-kerberosmodule entirely, so the embedded KDC server used by our Kerberos tests has to be restructured to use Apache Kerby'sKdcServerinstead. This also requires updating the LDIF files to work with Kerby's expectations.I've spent some time in the last couple of days trying to get LDAP and Kerberos tests running with AM27 - after almost rewriting the
KerberosEmbeddedServerI think I might have been able to get it done. I will send a draft PR to see how the CI goes with all the changes.18 remaining items
Upgrade ApacheDS to 2.0.0.AM27 to address CVE-2026-35563 (#51540)
Upgrade ApacheDS to 2.0.0.AM27 to address CVE-2026-35563 (#51539)