Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
|
| Impact | CVSS 7.1 (High) reflects the severity: network-accessible (AV:N), medium attack complexity due to UI interaction requirement (AC:H), low privilege requirement (PR:L—attacker must be authenticated), and user interaction dependency (UI:R). The vector indicates high impact across confidentiality, integrity, and availability (C:H/I:H/A:H). Real-world risk is elevated because: (1) the attack chain is reliable once initial authentication is obtained (common in federated environments where users have accounts), (2) the social engineering component (phishing via verification email) is proven effective, (3) no EPSS or KEV status indicates this may be a newly discovered or low-volume exploitation scenario. However, AC:H and UI:R constraints reduce immediate mass exploitation—attackers must find victims who will click links and require existing authentication. This is a legitimate priority for Keycloak deployments with federated IdP integrations and externally-facing account linking features, particularly those handling sensitive data. The lack of email ownership verification is a clear design flaw warranting urgent patching. |
| Exploit ScenarioDerived | An attacker Alice registers or is provisioned a valid account in a Keycloak realm with federated IdP login enabled (e.g., corporate Google Workspace or Azure AD). Alice initiates 'Login with IdP' and reaches the account linking/merge prompt, where she selects an option to merge with an existing realm account. Keycloak presents a profile review screen showing Alice's IdP profile (name, email from IdP). Alice modifies the email field from her actual email (alice@attacker.com) to the victim Bob's email (bob@company.com) and submits. No email verification occurs at this step. Keycloak sends a verification email to bob@company.com with a generic message like 'Verify your account' and a token, but does not reference Alice or her IdP identity. Bob receives the email, assumes it's a legitimate account action, clicks the link, and unknowingly grants Alice's IdP identity access to his account. Alice can now use her IdP login to access Bob's account, read his data, or escalate privileges. Attack complexity is medium due to the UI navigation and social engineering requirement, but no exploit code is needed—standard Keycloak UI is leveraged. Success probability increases in environments where users are accustomed to account linking flows and may not scrutinize verification emails. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 16, 2026
CVE-2025-7365 is an account takeover vulnerability in Keycloak affecting authenticated users during IdP-initiated account merging workflows. An attacker with valid authentication can manipulate the account merge process to change an email address to match a victim's email, triggering a verification email to the victim that lacks sender attribution-enabling phishing. Successful exploitation grants the attacker full account access to the victim's Keycloak account with high confidentiality, integrity, and availability impact (CVSS 7.1). No public POC or active KEV status has been confirmed at this time, but the attack requires low technical complexity and user interaction (clicking a verification link).
Earlier versions of this analysis (1)
CVE-2025-7365 is an account takeover vulnerability in Keycloak affecting authenticated users during IdP-initiated account merging workflows. An attacker with valid authentication can manipulate the account merge process to change an email address to match a victim's email, triggering a verification email to the victim that lacks sender attribution—enabling phishing. Successful exploitation grants the attacker full account access to the victim's Keycloak account with high confidentiality, integrity, and availability impact (CVSS 7.1). No public POC or active KEV status has been confirmed at this time, but the attack requires low technical complexity and user interaction (clicking a verification link).
RemediationAI
Immediate actions: (1) Disable account linking features if not operationally required, or restrict to trusted IdPs only via Keycloak ACLs. (2) Review and enforce email verification policies—require email ownership validation (confirmation token sent to the email address being set) before finalizing any email change during account merge, separate from the initial account linking verification. (3) Audit logs: enable and monitor account linking and email modification events for suspicious patterns. (4) User education: warn users not to click verification links from unexpected emails or to verify sender identity. (5) Apply patches from Keycloak security advisories once available (check https://www.keycloak.org/security or your vendor's advisory database for CVE-2025-7365 patch release details). Long-term: implement CWE-346 mitigations—require proof-of-ownership for any email address modifications in sensitive workflows, implement rate limiting on verification email sends per account/IP, and use email headers (From/Reply-To) that clearly identify the Keycloak instance and requester.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in maven
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability exists in Keycloak's identity provider (IdP) account linking and profile review functionality. When an authenticated user initiates an account merge with an external IdP, Keycloak prompts for profile review before finalizing the link. The flaw resides in insufficient validation of email ownership during this review stage (CWE-346: Classification as Trusted Source). An attacker can modify the email field to an arbitrary victim's email address without proof-of-ownership checks prior to sending the verification email. The verification email is generic and does not include the attacker's email address or session identifier, making it appear as a legitimate account recovery/verification message to the victim. This violates the principle of email-as-identity-proof without prior authorization and exploits Keycloak's trust in the review-profile workflow. Affected Keycloak versions incorporate this flaw in the account management and federation modules, typically instantiated via OpenID Connect or SAML IdP connectors.
Know when Keycloak gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
Lifecycle Timeline
2DescriptionCVE.org
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.
Blast Radius
ecosystem impact- 36 maven packages depend on org.keycloak:keycloak-services (16 direct, 20 indirect)
Ecosystem-wide dependent count for version 26.2.0.
Executive ViewAI
A critical authentication flaw in Keycloak allows attackers to hijack user accounts by impersonating victims during account merging operations, potentially compromising any organization relying on Keycloak for identity management. This vulnerability poses a direct threat to user account security and organizational data access controls, requiring immediate mitigation as no patch is currently available.
Disable the account merging/linking feature in Keycloak immediately. Implement email verification notification controls to alert users of verification attempts. Deploy WAF rules to monitor and log IdP login flows with account merge attempts. Restrict administrative access to Keycloak and enforce multi-factor authentication for all Keycloak users. Monitor email verification logs for anomalies. Consider isolating Keycloak behind additional authentication layers pending patch availability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot
The org.keycloak.services.resources.SocialResource.callback method in JBoss KeyCloak before 1.0.3.Final allows remote at
A flaw was found in Keycloak, where it does not properly validate URLs included in a redirect. Rated high severity (CVSS
An unconstrained memory consumption vulnerability was discovered in Keycloak. Rated high severity (CVSS 7.7), this vulne
Due to improper authorization, Red Hat Single Sign-On is vulnerable to users performing actions that they should not be
It was found that the Keycloak Node.js adapter 2.5 - 3.0 did not handle invalid tokens correctly. Rated critical severit
Authentication bypass in the Apache Airflow Keycloak auth manager provider (apache-airflow-providers-keycloak below 0.10
A privilege escalation flaw was found in the token exchange feature of keycloak. Rated critical severity (CVSS 9.8), thi
A vulnerability was found in keycloak 7.x, when keycloak is configured with LDAP user federation and StartTLS is used in
A flaw was found in keycloak in versions before 13.0.0. Rated critical severity (CVSS 9.6), this vulnerability is remote
A flaw was found in Keycloak that prevents certain schemes in redirects, but permits them if a wildcard is appended to t
A flaw was found in Keycloak. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, low attack c
Same weakness CWE-346 – Origin Validation Error
View allSame technique Information Disclosure
View allVendor StatusVendor
Debian
Bug #1088287| Release | Status | Fixed Version | Urgency |
|---|---|---|---|
| open | - | - |
EUVD-2025-20994
GHSA-xhpr-465j-7p9q
NVD
CVE.org
EPSS
Exploit-DB