Keycloak: phishing attack via email verification step in first login flow
Summary
| CVE | CVE-2025-7365 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2025-07-10 15:15:30 UTC |
| Updated | 2026-05-06 17:16:19 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.1 HIGH from [email protected]
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Problem Types: CWE-346 | CWE-346 Origin Validation Error
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 7.1 | HIGH | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
| 3.1 | [email protected] | Secondary | 7.1 | HIGH | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
| 3.1 | CNA | CVSS | 7.1 | HIGH | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
LowUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Red Hat | Red Hat Build Of Keycloak 26 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Build Of Keycloak 26 | Not specified | Not specified |
| CNA | Red Hat | Red Hat Build Of Keycloak 26.0 | unaffected 26.0.13-2 * rpm | Not specified |
| CNA | Red Hat | Red Hat Build Of Keycloak 26.0 | unaffected 26.0-16 * rpm | Not specified |
| CNA | Red Hat | Red Hat Build Of Keycloak 26.0 | unaffected 26.0-17 * rpm | Not specified |
| CNA | Red Hat | Red Hat Build Of Keycloak 26.2 | unaffected 26.2.6-1 * rpm | Not specified |
| CNA | Red Hat | Red Hat Build Of Keycloak 26.2 | unaffected 26.2-6 * rpm | Not specified |
| CNA | Red Hat | Red Hat Build Of Keycloak 26.2 | unaffected 26.2-6 * rpm | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| access.redhat.com/errata/RHSA-2025:12016 | [email protected] | access.redhat.com | Vendor Advisory |
| access.redhat.com/errata/RHSA-2025:11986 | [email protected] | access.redhat.com | Vendor Advisory |
| access.redhat.com/errata/RHSA-2025:12015 | [email protected] | access.redhat.com | Vendor Advisory |
| github.com/keycloak/keycloak/pull/40520 | [email protected] | github.com | |
| access.redhat.com/errata/RHSA-2025:11987 | [email protected] | access.redhat.com | Vendor Advisory |
| github.com/keycloak/keycloak/issues/40446 | [email protected] | github.com | |
| access.redhat.com/security/cve/CVE-2025-7365 | [email protected] | access.redhat.com | Vendor Advisory |
| bugzilla.redhat.com/show_bug.cgi | [email protected] | bugzilla.redhat.com | Issue Tracking, Vendor Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2025-07-08T18:35:00.135Z | Reported to Red Hat. |
| CNA | 2025-06-20T00:00:00.000Z | Made public. |
Workarounds
CNA: Disable account review in the Identity Provider to prevent users from potentially modifying identity information. Disable the email verification step and use only re-authentication step.
There are currently no legacy QID mappings associated with this CVE.