Advisory

GHSA-2wmj-46rj-qm2w

Also known as: CVE-2023-49097

Summary

ZITADEL Account Takeover via Malicious Host Header Injection

Details

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 [[email protected]](mailto:[email protected])

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-11-29 21:32 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

github.com/zitadel/zitadel

Go · All systems

Affected

  • introduced 2.39.0, fixed 2.39.9 (semver)

Fixed versions

2.39.9

Fix

github.com/zitadel/zitadel

Go · All systems

Affected

  • introduced 2.40.0, fixed 2.40.10 (semver)

Fixed versions

2.40.10

Fix

github.com/zitadel/zitadel

Go · All systems

Affected

  • introduced 2.41.0, fixed 2.41.6 (semver)

Fixed versions

2.41.6

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences