Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-0604
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 03:54 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 22 Jan 2025, 14:34 UTC

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.

osv:CVE-2025-0604
Complete source record
{
  "id": "3579cfebc42d90265ac3297be3bff5f63cf30d73d3190a46b11c2b136a3a2213",
  "url": "https://osv.dev/vulnerability/CVE-2025-0604",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Keycloak-ldap-federation: authentication bypass due to missing ldap bind after password reset 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 expired or disabled to regain access in Keycloak, bypassing AD restrictions. The issue enables authentication bypass and could allow unauthorized access under certain conditions.",
    "evidence": "osv:CVE-2025-0604",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-0604",
      "aliases": [
        "CVE-2025-0604",
        "GHSA-2p82-5wwr-43cw"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/keycloak/keycloak",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "b8563422152a91683d46ece89f257b343767cc14"
                },
                {
                  "fixed": "c11d93d93634b19102387bb89858c3043ccb40b9"
                },
                {
                  "fixed": "7dca54e8dc0dbe23995e260c989c9ef2e9023a94"
                },
                {
                  "fixed": "68119d4c99b96b167da9beadb994101ff0c4a899"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "26.0.10"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "26.1.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "26.0-11"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "InverseAffectedRanges"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "26.0-12"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "InverseAffectedRanges"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.4.0.Test",
            "1.3.0.Final",
            "1.1.0.Beta2",
            "1.0.0.Final",
            "1.0-final",
            "1.0-rc-1",
            "1.0-beta-4",
            "1.0-beta-2",
            "1.0-beta-1",
            "1.0-alpha-3",
            "1.0-alpha-2",
            "1.0-alpha-1",
            "1.0-alpha-1-12062013"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-0604.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:42.373530669Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/downloads/content/package-browser/",
        "https://catalog.redhat.com/software/containers/",
        "https://access.redhat.com/errata/RHSA-2025:2544",
        "https://access.redhat.com/errata/RHSA-2025:2545",
        "https://access.redhat.com/security/cve/CVE-2025-0604",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/0xxx/CVE-2025-0604.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-0604",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2338993",
        "https://github.com/keycloak/keycloak"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-287"
        ],
        "cna_assigner": "redhat",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "26.0.10-3"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "InverseAffectedRanges"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/0xxx/CVE-2025-0604.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-0604",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 509913,
  "published_at": "2025-01-22T14:34:45.923+00:00"
}