CVE-2025-7365

Keycloak: phishing attack via email verification step in first login flow

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.

Remediation

Workaround:

  • 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.

Category

5.4
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.01%
Affected: Red Hat Red Hat Build of Keycloak
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2025-7365?
CVE-2025-7365 has been scored as a medium severity vulnerability.
How to fix CVE-2025-7365?
As a workaround for remediating CVE-2025-7365: 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.
Is CVE-2025-7365 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2025-7365 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2025-7365?
CVE-2025-7365 affects Red Hat Red Hat Build of Keycloak.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.