Description
A flaw was found in Keycloak. When an authenticated attacker attempts to merge accounts with another existing account during an identity provider (IdP) login, the attacker will subsequently be prompted to "review profile" information. This vulnerability allows the attacker to modify their email address to match that of a victim's account, triggering a verification email sent to the victim's email address. The attacker's email address is not present in the verification email content, making it a potential phishing opportunity. If the victim clicks the verification link, the attacker can gain access to the victim's account.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | keycloak | < 26.0.13, 26.2.0 – < 26.2.6 | 26.0.13 |
| Red Hat | Red Hat build of Keycloak 26 | — | — |
| Red Hat | Red Hat build of Keycloak 26.0 | — | — |
| Red Hat | Red Hat build of Keycloak 26.2 | — | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-services | < 26.0.13 | 26.0.13 | GHSA-xhpr-465j-7p9q |
| Maven | org.keycloak:keycloak-services | >= 26.2.0, < 26.2.6 | 26.2.6 | GHSA-xhpr-465j-7p9q |
Advisories 1
- WID-SEC-2025-1512 Keycloak: Kontoübernahme durch Manipulation des E-Mail-Verifizierungsprozesses BSI CERT-Bund (WID) · Jul 28, 2025
References
- RHSA-2025:11986 vendor-advisory
- RHSA-2025:11987 vendor-advisory
- RHSA-2025:12015 vendor-advisory
- RHSA-2025:12016 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2025-7365 vdb-entry
- RHBZ#2378852 issue-tracking
- https://github.com/keycloak/keycloak/issues/40446
- https://github.com/keycloak/keycloak/pull/40520