{"id":"CVE-2025-7365","aliases":["CVE-2025-7365","GHSA-xhpr-465j-7p9q"],"related":[],"kind":"vulnerability","state":"published","title":"Keycloak: phishing attack via email verification step in first login flow","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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. \n\nThis issue has been fixed in versions 26.0.13, 26.2.6, and 26.3.0.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-07-10T14:20:45.775Z","modified":"2026-08-31T01:16:47.253Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.1,"rating":"HIGH"}],"cwes":["CWE-346"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"26.0.13","status":"affected"},{"type":"semver","introduced":"26.1.0","fixed":"26.1.*","status":"unknown"},{"type":"semver","introduced":"26.2.0","fixed":"26.2.6","status":"affected"}],"package":"keycloak","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26","cpe":"cpe:/a:redhat:build_keycloak:26.0::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26","cpe":"cpe:/a:redhat:build_keycloak:26.2::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.0.13-2","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.0","package":"rhbk/keycloak-operator-bundle","cpe":"cpe:/a:redhat:build_keycloak:26.0::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.0-16","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.0","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.0::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.0-17","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.0","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:26.0::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.2.6-1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.2","package":"rhbk/keycloak-operator-bundle","cpe":"cpe:/a:redhat:build_keycloak:26.2::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.2-6","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.2","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.2::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.2-6","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.2","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:26.2::el9","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"26.0.13"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"26.2.0","status":"affected","fixed":"26.2.6"}],"ecosystem":"Maven","package":"org.keycloak:keycloak-services","purl":"pkg:maven/org.keycloak/keycloak-services","source":"ghsa"},{"ranges":[],"vendor":"redhat","product":"keycloak","cpe":"cpe:2.3:a:redhat:keycloak:-:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2025:11986","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2025:11987","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2025:12015","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2025:12016","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-7365","tags":["vdb-entry","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2378852","tags":["issue-tracking","vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/keycloak/keycloak/issues/40446","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/keycloak/keycloak/pull/40520","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-xhpr-465j-7p9q","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-7365","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/releases/tag/26.0.13","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/releases/tag/26.2.6","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/keycloak/keycloak/releases/tag/26.3.0","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-07-10T20:16:26.504Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-7365","url":"https://www.cve.org/CVERecord?id=CVE-2025-7365","licence":"CVE Terms of Use","modified":"2026-08-31T00:28:06.544Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xhpr-465j-7p9q","url":"https://github.com/advisories/GHSA-xhpr-465j-7p9q","licence":"CC-BY-4.0","modified":"2025-07-30T14:42:20.089Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-7365","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-7365","licence":"Public domain","modified":"2026-08-31T01:16:47.253Z"}],"updatedAt":"2026-11-25T22:59:01.099Z","epss":{"score":0.00272,"percentile":0.20869,"date":"2026-12-01T12:00:22.000Z"}}