Vulnerability · Published Jan 22, 2025 · Assigned by redhat
CVE-2025-0604Keycloak-ldap-federation: authentication bypass due to missing ldap bind after password reset in keycloak
Medium 5.4
In plain English
A medium-severity improper authentication in keycloak-ldap-federation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 53% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.keycloak:keycloak-ldap-federation | 26.1.3 | GHSA-2p82-5wwr-43cw |
| Maven | org.keycloak:keycloak-ldap-federation | 26.0.10 | GHSA-2p82-5wwr-43cw |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| keycloak-ldap-federation | 0 – before 26.0.100 – before 26.1.3 | |
| Red Hat | Red Hat Build of Keycloak | see references |
| Red Hat | Red Hat build of Keycloak 26.0 | see references |
| Red Hat | Red Hat build of Keycloak 26.0 | see references |
| Red Hat | Red Hat build of Keycloak 26.0 | see references |
| Red Hat | Red Hat Single Sign-On 7 | see references |
Weakness: CWE-287 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
References
- RHSA-2025:2544 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:2545 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-0604 vdb-entry, x_refsource_REDHAT
- RHBZ#2338993 issue-tracking, x_refsource_REDHAT