cve.bz

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

5.4 mediumEPSS 0.7%Fix available

Medium (5.4) in red hat. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in org.keycloak:keycloak-ldap-federation 26.0.10, 26.1.3.

On this page
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.

Severity

CVSS 3.1

5.4 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
EPSS
0.7% (unchanged from 0.7% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 54th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-01-22. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-287 Improper Authentication
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
Assigned by
redhat (CNA)
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

  • org.keycloak:keycloak-ldap-federation (Maven): fixed in 26.1.3, 26.0.10
  • Red Hat Red Hat build of Keycloak 26.0: fixed in 26.0.10-3
  • Red Hat Red Hat build of Keycloak 26.0: fixed in 26.0-11
  • Red Hat Red Hat build of Keycloak 26.0: fixed in 26.0-12

Ask an AI about this CVE

Show the promptExplain CVE-2025-0604 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-0604?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-0604?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-0604 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
keycloak-ldap-federationbefore 26.0.10
keycloak-ldap-federationbefore 26.1.3

Fixed in

ProductFixed in
Red Hat build of Keycloak 26.026.0.10-3
Red Hat build of Keycloak 26.026.0-11
Red Hat build of Keycloak 26.026.0-12

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2p82-5wwr-43cwMavenorg.keycloak:keycloak-ldap-federation>=26.1.0 <26.1.326.1.3
GHSA-2p82-5wwr-43cwMavenorg.keycloak:keycloak-ldap-federation<26.0.1026.0.10

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Moderate impact affects Red Hat Build of Keycloak (RHBK) and Red Hat Single Sign-On (RH-SSO) in the keycloak-ldap-federation component. A network attacker with low privileges can exploit the password-reset flow: when an Active Directory user resets a password, Keycloak updates it without performing an LDAP bind to validate the new credentials against AD. An expired or disabled AD account can therefore regain access to Keycloak, resulting in authentication bypass with low confidentiality and integrity impact and no availability impact (CVSS 5.4, AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N). For RHBK, the issue is delegated and a fix is being pursued. RH-SSO is affected but is marked WONTFIX, so the current record indicates that no fix is planned for that product.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Build of KeycloakFixed 2025-03-10RHSA-2025:2545
Red Hat build of Keycloak 26.0rhbk/keycloak-operator-bundle:26.0.10-3Fixed 2025-03-10RHSA-2025:2544
Red Hat build of Keycloak 26.0rhbk/keycloak-rhel9:26.0-11Fixed 2025-03-10RHSA-2025:2544
Red Hat build of Keycloak 26.0rhbk/keycloak-rhel9-operator:26.0-12Fixed 2025-03-10RHSA-2025:2544
Red Hat Single Sign-On 7keycloak-ldap-federationWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-0604.

Attack patterns (CAPEC)

  • CAPEC-22 Exploiting Trust in Client Likelihood: High · Severity: High
  • CAPEC-57 Utilizing REST's Trust in the System Resource to Obtain Sensitive Data Likelihood: Medium · Severity: Very High
  • CAPEC-94 Adversary in the Middle (AiTM) Likelihood: High · Severity: Very High
  • CAPEC-114 Authentication Abuse Severity: Medium
  • CAPEC-115 Authentication Bypass Severity: Medium
  • CAPEC-151 Identity Spoofing Likelihood: Medium · Severity: Medium
  • CAPEC-194 Fake the Source of Data Severity: Medium
  • CAPEC-593 Session Hijacking Likelihood: High · Severity: Very High
  • CAPEC-633 Token Impersonation Severity: Medium
  • CAPEC-650 Upload a Web Shell to a Web Server Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON