CVE-2025-7365: Keycloak: phishing attack via email verification step in first login flow
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.
Security readout for executives and security teams
Plain-English summary
CVE-2025-7365 is a Keycloak account-takeover phishing weakness in the first-login identity-provider flow. An authenticated attacker can cause a verification email to be sent to a victim without clearly showing the attacker’s email. If the victim clicks the link, the attacker may gain access to the victim’s account.
Executive priority
Treat as a priority identity-platform fix. The flaw can support account takeover, but requires attacker authentication and victim interaction. Patch affected Keycloak environments through vendor advisories and add user-awareness monitoring for suspicious verification emails.
Technical view
The flaw occurs during IdP login account merging and subsequent profile review. The attacker can change their email to match a victim’s, triggering a misleading verification email. Red Hat rates it High with CVSS 7.1: network exploitable, high complexity, low privileges, and required user interaction.
Likely exposure
Organizations using Keycloak or Red Hat build of Keycloak 26, especially 26.0 and 26.2 packages listed by Red Hat, should assess exposure. Risk is highest where external IdPs, first-login flows, account linking, and email verification are enabled.
Exploitation context
Sources do not show CISA KEV listing or confirmed active exploitation. Exploitation requires an authenticated attacker, a suitable IdP account-merge flow, and victim interaction with a verification email. The impact can include confidentiality, integrity, and availability loss for the victim account.
Researcher notes
Key evidence comes from Red Hat and CVE sources. The weakness is mapped to CWE-346. Public sources identify the attack path and affected Red Hat package versions, but this summary does not confirm exploit-in-the-wild activity or all upstream fixed versions.
Mitigation direction
Apply the relevant Red Hat security advisories for affected Red Hat build of Keycloak packages.
Check upstream Keycloak issue and pull request for vendor remediation status.
Review vendor guidance before changing login, account-linking, or email-verification behavior.
Warn helpdesk and users about unexpected Keycloak verification emails until remediated.
Validation and detection
Inventory Keycloak and Red Hat build of Keycloak 26 deployments.
Compare installed packages against Red Hat’s affected package list.
Confirm applicable RHSA updates are installed where Red Hat packages are used.
Review whether IdP first-login account linking and email verification are enabled.
Monitor authentication logs for unusual account-linking or email-change events.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-346: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-346 · source CWE mapping
Origin Validation Error
Origin Validation Error represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.