CVE-2025-0604: Keycloak-ldap-federation: authentication bypass due to missing ldap bind after password reset in keycloak

Published Jan 20, 2025
·
Updated

Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-2p82-5wwr-43cw. This link is maintained to preserve external references.

Original Description

A flaw was found in Keycloak. When an Active Directory user resets their password, the system updates it without performing an LDAP bind to validate the new credentials against AD. This vulnerability allows users whose AD accounts are expired or disabled to regain access in Keycloak, bypassing AD restrictions. The issue enables authentication bypass and could allow unauthorized access under certain conditions.

Other sources

The issue arises because Keycloak does not perform an LDAP bind after a password reset, leading to potential authentication bypass for expired or disabled AD accounts. A fix should enforce LDAP validation after password updates to ensure consistency with AD authentication policies.

GitHub

Affected Software

4 affected componentsFixes available
Keycloak Keycloak
maven/org.keycloak:keycloak-ldap-federation<26.0.10
26.0.10
maven/org.keycloak:keycloak-ldap-federation>=26.1.0<26.1.3
26.1.3
maven/org.keycloak:keycloak-ldap-federation<=26.1.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.keycloak:keycloak-ldap-federation to a version that resolves this vulnerability.

    Fixed in 26.0.10
  2. Upgrade

    Upgrade maven/org.keycloak:keycloak-ldap-federation to a version that resolves this vulnerability.

    Fixed in 26.1.3

Event History

Jan 20, 2025
Data Sourced
via Red Hat·11:35 AM
DescriptionSeverityAffected Software
Jan 22, 2025
CVE Published
via MITRE·02:34 PM
Data Sourced
via MITRE·02:34 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·03:32 PM
Mar 10, 2025
Withdrawn
via GitHub·09:07 PM

Frequently Asked Questions

1

What is the severity of CVE-2025-0604?

CVE-2025-0604 is classified as a high-severity vulnerability due to the potential unauthorized access it allows.

2

How do I fix CVE-2025-0604?

To mitigate CVE-2025-0604, ensure you configure Keycloak to properly validate user credentials with an LDAP bind during password resets.

3

Which software versions are affected by CVE-2025-0604?

CVE-2025-0604 affects Keycloak versions up to and including 26.1.0 in the keycloak-ldap-federation package.

4

What kind of access does CVE-2025-0604 provide to users?

CVE-2025-0604 allows users with expired or disabled Active Directory accounts to regain access to Keycloak.

5

Is CVE-2025-0604 related to Active Directory?

Yes, CVE-2025-0604 specifically involves a vulnerability in Keycloak related to password resets for Active Directory users.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203