CVE-2025-64717
JSON

7.4high

ZITADEL vulnerable to Account Takeover with deactivated Instance IdP

Severity
7.4high CVSS:4.0 by GitHub_M
Exploit likelihood
0.50% (higher than 44% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-j4g7-v4m4-77pxGO-2025-4124

Description

ZITADEL is an open source identity management platform. Starting in version 2.50.0 and prior to versions 2.71.19, 3.4.4, and 4.6.6, a vulnerability in ZITADEL's federation process allowed auto-linking users from external identity providers to existing users in ZITADEL even if the corresponding IdP was not active or if the organization did not allow federated authentication. This vulnerability stems from the platform's failure to correctly check or enforce an organization's specific security settings during the authentication flow. An Organization Administrator can explicitly disable an IdP or disallow federation, but this setting was not being honored during the auto-linking process. This allowed an unauthenticated attacker to initiate a login using an IdP that should have been disabled for that organization. The platform would incorrectly validate the login and, based on a matching criteria, link the attacker's external identity to an existing internal user account. This may result in a full Account Takeover, bypassing the organization's mandated security controls. Note that accounts with MFA enabled can not be taken over by this attack. Also note that only IdPs create on an instance level would allow this to work. IdPs registered on another organization would always be denied in the (auto-)linking process. Versions 4.6.6, 3.4.4, and 2.71.19 resolve the issue by correctly validating the organization's login policy before auto-linking an external user. No known workarounds are available aside from upgrading.

Affected

Product or packageVersionsReported by
zitadel zitadel>= 4.0.0-rc.1, < 4.6.6, >= 3.0.0-rc.1, < 3.4.4, >= 2.50.0, < 2.71.19, from 2.50.0 before 2.71.19, from 3.0.0 before 3.4.4, from 4.0.0 before 4.6.6CVE List, NVD
github.com/zitadel/zitadel (Go)from 4.0.0-rc.1 before 4.6.6, from 3.0.0-rc.1 before 3.4.4, from 2.50.0 before 2.71.19, from 1.80.0-v2.20.0.20240403060621-5b3946b67ef6 before 1.80.0-v2.20.0.20251112124840-33c51deb2040GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M7.4high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-287

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

What each source says

CVE List

ZITADEL is an open source identity management platform. Starting in version 2.50.0 and prior to versions 2.71.19, 3.4.4, and 4.6.6, a vulnerability in ZITADEL's federation process allowed auto-linking users from external identity providers to existing users in ZITADEL even if the corresponding IdP was not active or if the organization did not allow federated authentication. This vulnerability stems from the platform's failure to correctly check or enforce an organization's specific security settings during the authentication flow. An Organization Administrator can explicitly disable an IdP or disallow federation, but this setting was not being honored during the auto-linking process. This allowed an unauthenticated attacker to initiate a login using an IdP that should have been disabled for that organization. The platform would incorrectly validate the login and, based on a matching criteria, link the attacker's external identity to an existing internal user account. This may result in a full Account Takeover, bypassing the organization's mandated security controls. Note that accounts with MFA enabled can not be taken over by this attack. Also note that only IdPs create on an instance level would allow this to work. IdPs registered on another organization would always be denied in the (auto-)linking process. Versions 4.6.6, 3.4.4, and 2.71.19 resolve the issue by correctly validating the organization's login policy before auto-linking an external user. No known workarounds are available aside from upgrading.

GitHub Advisory Database
Summary

A vulnerability in ZITADEL's federation process allowed auto-linking users from external identity providers to existing users in ZITADEL even if the corresponding IdP was not active or if the organization did not allow federated authentication.

Impact

This vulnerability stems from the platform's failure to correctly check or enforce an organization's specific security settings during the authentication flow. An Organization Administrator can explicitly disable an IdP or disallow federation, but this setting was not being honored during the auto-linking process.

This allowed an unauthenticated attacker to initiate a login using an IdP that should have been disabled for that organization. The platform would incorrectly validate the login and, based on a matching criteria, link the attacker's external identity to an existing internal user account.

This may result in a full Account Takeover, bypassing the organization's mandated security controls. Note that accounts with MFA enabled can not be taken over by this attack. Also note that only IdPs create on an instance level would allow this to work. IdPs registered on another organization would always be denied in the (auto-)linking process.

Affected Versions

Systems running one of the following versions are affected:

  • v4.x: 4.0.0-rc.1 through 4.6.5
  • v3.x: 3.0.0-rc.1 through 3.4.3
  • v2.x: 2.50.0 through 2.71.18
Patches

The vulnerability has been addressed in the latest release. The patch resolves the issue by correctly validating the organization's login policy before auto-linking an external user.

  • v4.x: Upgrade to version 4.6.6 or later.
  • v3.x: Update to version 3.4.4 or later.
  • v2.x: Update to version 2.71.19 or later.
Workarounds

Upgrading to a patched version is the recommended solution.

Questions

If you have any questions or comments about this advisory, please email Zitadel at security@zitadel.com

Credits

Thanks to Jan Kühnlein - kultify for finding and reporting the vulnerability.

Go Vulnerability Database

ZITADEL is vulnerable to Account Takeover with deactivated Instance IdP in github.com/zitadel/zitadel.

NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.

(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)

The additional affected modules and versions are: github.com/zitadel/zitadel from v2.50.0 before v2.71.19, from v3.0.0-rc.1 before v3.4.4, from v4.0.0-rc.1 before v4.6.6.

NVD (es)

ZITADEL es una plataforma de gestión de identidad de código abierto. A partir de la versión 2.50.0 y antes de las versiones 2.71.19, 3.4.4 y 4.6.6, una vulnerabilidad en el proceso de federación de ZITADEL permitía el autoenlace de usuarios de proveedores de identidad externos a usuarios existentes en ZITADEL incluso si el IdP correspondiente no estaba activo o si la organización no permitía la autenticación federada. Esta vulnerabilidad se deriva de la falla de la plataforma al verificar o aplicar correctamente las configuraciones de seguridad específicas de una organización durante el flujo de autenticación. Un Administrador de Organización puede deshabilitar explícitamente un IdP o denegar la federación, pero esta configuración no se respetaba durante el proceso de autoenlace. Esto permitía a un atacante no autenticado iniciar una sesión utilizando un IdP que debería haber estado deshabilitado para esa organización. La plataforma validaría incorrectamente el inicio de sesión y, basándose en un criterio de coincidencia, vincularía la identidad externa del atacante a una cuenta de usuario interna existente. Esto puede resultar en una Toma de Control de Cuenta completa, eludiendo los controles de seguridad obligatorios de la organización. Tenga en cuenta que las cuentas con MFA habilitado no pueden ser tomadas por este ataque. También tenga en cuenta que solo los IdP creados a nivel de instancia permitirían que esto funcionara. Los IdP registrados en otra organización siempre serían denegados en el proceso de (auto)enlace. Las versiones 4.6.6, 3.4.4 y 2.71.19 resuelven el problema al validar correctamente la política de inicio de sesión de la organización antes de autoenlazar a un usuario externo. No hay soluciones alternativas conocidas disponibles aparte de la actualización.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-64717 changed 2025-11-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-j4g7-v4m4-77px changed 2025-11-17CC-BY-4.0
Go Vulnerability DatabaseGO-2025-4124 changed 2025-11-17CC-BY-4.0
NVDCVE-2025-64717 changed 2026-10-19Public domain