CVE-2025-7365
JSON

7.1high

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

Severity
7.1high CVSS:3.1 by redhat
Exploit likelihood
0.27% (higher than 20% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat
Also known as
GHSA-xhpr-465j-7p9q

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.

Affected

Product or packageVersionsReported by
keycloakbefore 26.0.13, from 26.1.0 before 26.1.*, from 26.2.0 before 26.2.6CVE List
Red Hat Red Hat build of Keycloak 26Not specifiedCVE List
rhbk/keycloak-operator-bundleNot specified
Not affected: from 26.0.13-2 before *, from 26.2.6-1 before *
CVE List
rhbk/keycloak-rhel9Not specified
Not affected: from 26.0-16 before *, from 26.2-6 before *
CVE List
rhbk/keycloak-rhel9-operatorNot specified
Not affected: from 26.0-17 before *, from 26.2-6 before *
CVE List
org.keycloak:keycloak-services (Maven)before 26.0.13, from 26.2.0 before 26.2.6GitHub Advisory Database
redhat keycloakNot specifiedNVD

All scores

redhat7.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
GitHub5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N
NVD7.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-346

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database

There is a flaw with the first login flow where, during a IdP login, an attacker with a registered account can initiate the process to merge accounts with an existing victim's account. The attacker will subsequently be prompted to "review profile" information, which allows the the attacker to modify their email address to that of a victim's account. This triggers a verification email sent to the victim's email address. If the victim clicks the verification link, the attacker can gain access to the victim's account. While not a zero-interaction attack, the attacker's email address is not directly present in the verification email content, making it a potential phishing opportunity.

This issue has been fixed in versions 26.0.13, 26.2.6, and 26.3.0.

NVD (es)

Se encontró una falla en Keycloak. Cuando un atacante autenticado intenta fusionar cuentas con otra existente durante el inicio de sesión de un proveedor de identidad (IdP), se le solicita que revise la información del perfil. Esta vulnerabilidad permite al atacante modificar su dirección de correo electrónico para que coincida con la de la cuenta de la víctima, lo que activa el envío de un correo electrónico de verificación a la dirección de correo electrónico de la víctima. La dirección de correo electrónico del atacante no aparece en el contenido del correo de verificación, lo que lo convierte en una posible oportunidad de phishing. Si la víctima hace clic en el enlace de verificación, el atacante puede acceder a su cuenta.

References

https://access.redhat.com/errata/RHSA-2025:11986vendor-advisory, web
https://access.redhat.com/errata/RHSA-2025:11987vendor-advisory, web
https://access.redhat.com/errata/RHSA-2025:12015vendor-advisory, web
https://access.redhat.com/errata/RHSA-2025:12016vendor-advisory, web
https://access.redhat.com/security/cve/CVE-2025-7365vdb-entry, vendor-advisory, web
https://bugzilla.redhat.com/show_bug.cgi?id=2378852issue-tracking, vendor-advisory, web
https://github.com/keycloak/keycloak/issues/40446web
https://github.com/keycloak/keycloak/pull/40520web
https://github.com/keycloak/keycloak/security/advisories/GHSA-xhpr-465j-7p9qweb
https://nvd.nist.gov/vuln/detail/CVE-2025-7365advisory
https://github.com/keycloak/keycloakpackage
https://github.com/keycloak/keycloak/releases/tag/26.0.13web

Sources

SourceRecordLicence
CVE ListCVE-2025-7365 changed 2026-08-31CVE Terms of Use
GitHub Advisory DatabaseGHSA-xhpr-465j-7p9q changed 2025-07-30CC-BY-4.0
NVDCVE-2025-7365 changed 2026-08-31Public domain