5.4Medium
CVE-2025-0604Keycloak-ldap-federation: authentication bypass due to missing ldap bind after password reset in keycloak
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.
Weakness (CWE):
CWE-287
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| build keycloak | 26.0 | — | |
| Red Hat | Red Hat Build of Keycloak | all versions | |
| Red Hat | Red Hat build of Keycloak 26.0 | all versions | |
| Red Hat | Red Hat Single Sign-On 7 | all versions | |
| — | keycloak-ldap-federation | < 26.0.10, < 26.1.3 |
References and patches
- RHSA-2025:2544 vendor-advisory
- RHSA-2025:2545 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2025-0604 vdb-entry
- RHBZ#2338993 issue-tracking