CVE-2023-49097 ZITADEL vulnerable account takeover via malicious host header injection

High 8.1 Published Updated

Attackers can hijack password reset links via host header injection to steal codes and take over user accounts without MFA.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-49097?

CVE-2023-49097 is a high-severity vulnerability in zitadel, published on 30 Nov 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-640

Which versions are affected by CVE-2023-49097?

6 open source packages ship an affected version, including github.com/zitadel/zitadel. It affects 1 product.

PackageAffectedFixed in
github.com/zitadel/zitadel GoFrom 2.39.02.39.9
github.com/zitadel/zitadel GoFrom 2.39.02.39.9
github.com/zitadel/zitadel GoFrom 2.40.02.40.10
github.com/zitadel/zitadel GoFrom 2.40.02.40.10
github.com/zitadel/zitadel GoFrom 2.41.02.41.6
github.com/zitadel/zitadel GoFrom 2.41.02.41.6

Products include Zitadel Zitadel.

How do I fix CVE-2023-49097?

Upgrade github.com/zitadel/zitadel to a fixed version for your release line: 2.39.9, 2.40.10 or 2.41.6.

Is CVE-2023-49097 being exploited?

There is no known exploitation of CVE-2023-49097 in the wild and no public exploit code.

Sources

Also known as GHSA-2wmj-46rj-qm2w.

Is CVE-2023-49097 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free