CVE-2025-7365
Keycloak: phishing attack via email verification step in first login flow
HIGH 7.1
At a glance
- Source
- NVD
- EPSS
- EPSS 0.27 % · percentile 20 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- redhat
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-346 — Origin Validation Error
References
- https://access.redhat.com/errata/RHSA-2025:11986
- https://access.redhat.com/errata/RHSA-2025:11987
- https://access.redhat.com/errata/RHSA-2025:12015
- https://access.redhat.com/errata/RHSA-2025:12016
- https://access.redhat.com/security/cve/CVE-2025-7365
- https://bugzilla.redhat.com/show_bug.cgi?id=2378852
- https://github.com/keycloak/keycloak/issues/40446
- https://github.com/keycloak/keycloak/pull/40520
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H | redhat |
| CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H | NVD · secalert@redhat.com (Secondary) |
| CVSS 3.1 | HIGH 7.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H | NVD · nvd@nist.gov (Secondary) |
Advisories
- GHSA-xhpr-465j-7p9q — Keycloak phishing attack via email verification step in first login flow
European references
- ENISA EUVD · EUVD-2025-20994
- GCVE · GCVE-0-2025-7365
Affected configurations (NVD CPE)
cpe:2.3:a:redhat:keycloak:-:*:*:*:*:*:*:*
Affected products
| Product | Versions |
|---|---|
| keycloak | affected 0 < 26.0.13 ; unknown 26.1.0 < 26.1.* ; affected 26.2.0 < 26.2.6 |
| Red Hat · Red Hat build of Keycloak 26 | |
| Red Hat · Red Hat build of Keycloak 26 | |
| Red Hat · Red Hat build of Keycloak 26.0 | unaffected 26.0.13-2 < * |
| Red Hat · Red Hat build of Keycloak 26.0 | unaffected 26.0-16 < * |
| Red Hat · Red Hat build of Keycloak 26.0 | unaffected 26.0-17 < * |
| Red Hat · Red Hat build of Keycloak 26.2 | unaffected 26.2.6-1 < * |
| Red Hat · Red Hat build of Keycloak 26.2 | unaffected 26.2-6 < * |
| Red Hat · Red Hat build of Keycloak 26.2 | unaffected 26.2-6 < * |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |