8.1high
ZITADEL vulnerable account takeover via malicious host header injection
- Severity
- 8.1high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.93% (higher than 61% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-2wmj-46rj-qm2w
Description
ZITADEL is an identity infrastructure system. ZITADEL uses the notification triggering requests Forwarded or X-Forwarded-Host header to build the button link sent in emails for confirming a password reset with the emailed code. If this header is overwritten and a user clicks the link to a malicious site in the email, the secret code can be retrieved and used to reset the users password and take over his account. Accounts with MFA or Passwordless enabled can not be taken over by this attack. This issue has been patched in versions 2.41.6, 2.40.10 and 2.39.9.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| zitadel zitadel | >= 2.39.0, < 2.39.9, >= 2.40.0, < 2.40.10, >= 2.41.0, < 2.41.6, from 2.39.0 before 2.39.9, from 2.40.0 before 2.40.10, from 2.41.0 before 2.41.6 | CVE List, NVD |
| github.com/zitadel/zitadel (Go) | from 2.39.0 before 2.39.9, from 2.40.0 before 2.40.10, from 2.41.0 before 2.41.6 | GitHub Advisory Database |
All scores
| GitHub_M | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| GitHub | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
ZITADEL is an identity infrastructure system. ZITADEL uses the notification triggering requests Forwarded or X-Forwarded-Host header to build the button link sent in emails for confirming a password reset with the emailed code. If this header is overwritten and a user clicks the link to a malicious site in the email, the secret code can be retrieved and used to reset the users password and take over his account. Accounts with MFA or Passwordless enabled can not be taken over by this attack. This issue has been patched in versions 2.41.6, 2.40.10 and 2.39.9.
GitHub Advisory Database
Impact
ZITADEL uses the notification triggering requests Forwarded or X-Forwarded-Host header to build the button link sent in emails for confirming a password reset with the emailed code. If this header is overwritten and a user clicks the link to a malicious site in the email, the secret code can be retrieved and used to reset the users password and take over his account.
Accounts with MFA or Passwordless enabled can not be taken over by this attack.
Patches
The patched ZITADEL versions verify, that the auth requests instance is retrieved by the requests original domain (from the Forwarded or X-Forwarded-Host headers if available). If the instance can't be found using the original host or the auth request can't be found within that instance, ZITADEL throws an error.
2.x versions are fixed on >= 2.41.6 2.40.x versions are fixed on >= 2.40.10 2.39.x versions are fixed on >= 2.39.9
The vulnerablility was introduced with 2.39.0.
Workarounds
A ZITADEL fronting proxy can be configured to delete all Forwarded and X-Forwarded-Host header values before sending requests to ZITADEL self-hosted environments.
References
None
Questions
If you have any questions or comments about this advisory, please email us at security@zitadel.com
NVD (es)
ZITADEL es un sistema de infraestructura de identidad. ZITADEL utiliza el encabezado de solicitudes de activación de notificaciones Forwarded o X-Forwarded-Host para crear el enlace del botón enviado en los correos electrónicos para confirmar un restablecimiento de contraseña con el código enviado por correo electrónico. Si este encabezado se sobrescribe y un usuario hace clic en el enlace a un sitio malicioso en el correo electrónico, el código secreto se puede recuperar y utilizar para restablecer la contraseña del usuario y hacerse cargo de su cuenta. Este ataque no puede apoderarse de las cuentas con MFA o sin contraseña habilitadas. Este problema se solucionó en las versiones 2.41.6, 2.40.10 y 2.39.9.
References
| https://github.com/zitadel/zitadel/security/advisories/GHSA-2wmj-46rj-qm2w | exploit, patch, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-49097 | advisory | |
| https://github.com/zitadel/zitadel | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-49097 changed 2024-11-27 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2wmj-46rj-qm2w changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2023-49097 changed 2026-06-17 | Public domain |