Skip to content

CVE-2026-35563: LDAP client implementation in version 2.1.7 does not verify if the server certificate matches the intended LDAP hostname #50785

Closed

Description

@ahus1

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.

Activity

  1. added theissue type on Jul 10, 2026
  2. self-assigned this
    on Jul 10, 2026
  3. added
    kind/cve
    on Jul 10, 2026
  4. added
    area/ldap
    on Jul 10, 2026
  5. removed their assignment
    on Jul 10, 2026
  6. sguilhen commented on Jul 23, 2026

    @sguilhen
    Contributor

    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.

  7. self-assigned this
    on Jul 23, 2026
  8. added
    priority/important
    on Jul 23, 2026
  9. 18 remaining items

  10. added 2 commits that reference this issue on Aug 19, 2026
    239232d
    93ddd91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/ldapkind/cvepriority/importantrelease/26.6.7release/26.7.3release/26.8.0team/cloud-nativeteam/communityteam/continuous-deliveryteam/core-authnteam/core-clientsteam/core-iamteam/core-protocolsteam/core-sharedteam/production-readinessteam/security

Type

Fields

No fields configured for cve.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions