A vulnerability was found in Keycloak when configured with LDAP user federation and StartTLS is used instead of SSL/TLS from the LDAP server, allowing user authentication to succeed even with an invalid password. The issue is related to errors in the implementation of the authentication procedure. This could potentially allow a remote attacker to elevate their privileges.