---
id: CVE-2025-0604
title: A flaw was found in Keycloak
summary: >-
  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 ex…
severity: medium
cvss: 5.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'
cwe:
  - CWE-287
vendor: Red Hat
product: keycloak-ldap-federation
affected:
  - keycloak-ldap-federation < 26.0.10
  - keycloak-ldap-federation < 26.1.3
  - build_of_keycloak
  - rhbk/keycloak-operator-bundle (all versions)
  - rhbk/keycloak-rhel9 (all versions)
  - rhbk/keycloak-rhel9-operator (all versions)
  - keycloak-ldap-federation (all versions)
published: '2025-01-22'
updated: '2026-09-21'
sourceUpdated: '2026-09-21T06:16:59.613'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-0604'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2025:2544'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2025:2545'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2025-0604'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2338993'
    label: secalert@redhat.com
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-0604.json
  - url: 'https://www.cve.org/CVERecord?id=CVE-2025-0604'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-0604'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2025-01-22T15:05:55.294057Z'
epss: 0.0059
epssPercentile: 0.46894
ingestedAt: '2026-08-04T09:39:29.825Z'
patched:
  - build_of_keycloak 26.0
  - build_of_keycloak
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **RHSA-2025:2544** · Red Hat · fixed in: Red Hat build of Keycloak 26.0 · released 2025-03-10 · [advisory](https://access.redhat.com/errata/RHSA-2025:2544)
- **RHSA-2025:2545** · Red Hat · fixed in: Red Hat Build of Keycloak · released 2025-03-10 · [advisory](https://access.redhat.com/errata/RHSA-2025:2545)
- **Red Hat VEX** · Moderate · affected: Red Hat Single Sign-On 7 · no fix planned: Red Hat Single Sign-On 7 · updated 2026-09-21 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-0604.json)
