CVE-2023-49097: Github.com/zitadel/zitadel ZITADEL Account Takeover Vulnerability
HIGHCVE-2023-49097 is a HIGH (CVSS 8.1) zitadel account takeover vulnerability (CWE-640: Weak Password Recovery Mechanism for Forgotten Password) affecting Github.com/zitadel/zitadel libraries in the Go ecosystem. The issue involves zitadel account takeover via malicious host header injection. Remediation is available by upgrading affected packages to version 2.39.9, 2.40.10, 2.41.6.
CVE-2023-49097 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N).
How to Fix CVE-2023-49097
To remediate this vulnerability, upgrade all affected Github.com/zitadel/zitadel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/zitadel/zitadel to 2.39.9
Upgrade github.com/zitadel/zitadel to 2.40.10
Upgrade github.com/zitadel/zitadel to 2.41.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/zitadel/zitadel
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-49097, inspect your project dependencies for Github.com/zitadel/zitadel:
inspect dependencies for github.com/zitadel/zitadel
Analyze the terminal output to locate any version of Github.com/zitadel/zitadel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.39.9), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-640: Weak Password Recovery Mechanism for Forgotten Password, where the product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak. In Github.com/zitadel/zitadel, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-49097 Affected Github.com/zitadel/zitadel Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/zitadel/zitadel
|
Go |
≥ 2.39.0
< 2.39.9
|
2.39.9
|
|
github.com/zitadel/zitadel
|
Go |
≥ 2.40.0
< 2.40.10
|
2.40.10
|
|
github.com/zitadel/zitadel
|
Go |
≥ 2.41.0
< 2.41.6
|
2.41.6
|
References
Frequently Asked Questions
What is CVE-2023-49097?
Which Github.com/zitadel/zitadel versions are affected?
What version fixes CVE-2023-49097?
Is github.com/zitadel/zitadel affected?
What is the CVSS score of CVE-2023-49097?
What CWE is associated with CVE-2023-49097?
How can I check Go dependencies for CVE-2023-49097?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2wmj-46rj-qm2w",
"modified" : "2023-11-30T15:03:20Z",
"published" : "2023-11-29T21:32:51Z",
"aliases" : [ "CVE-2023-49097" ],
"summary" : "ZITADEL Account Takeover via Malicious Host Header Injection",
"details" : "### Impact\n\nZITADEL 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.\n\nAccounts with MFA or Passwordless enabled can not be taken over by this attack.\n\n### Patches\n\nThe 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.\n\n2.x versions are fixed on >= [2.41.6](https://github.com/zitadel/zitadel/releases/tag/v2.41.6)\n2.40.x versions are fixed on >= [2.40.10](https://github.com/zitadel/zitadel/releases/tag/v2.40.10)\n2.39.x versions are fixed on >= [2.39.9](https://github.com/zitadel/zitadel/releases/tag/v2.39.9)\n\nThe vulnerablility was introduced with 2.39.0.\n\n### Workarounds\n\nA ZITADEL fronting proxy can be configured to delete all Forwarded and X-Forwarded-Host header values before sending requests to ZITADEL self-hosted environments.\n\n### References\n\nNone\n\n### Questions\n\nIf you have any questions or comments about this advisory, please email us at [security@zitadel.com](mailto:security@zitadel.com)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/zitadel/zitadel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.39.0"
}, {
"fixed" : "2.39.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/zitadel/zitadel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.40.0"
}, {
"fixed" : "2.40.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/zitadel/zitadel"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.41.0"
}, {
"fixed" : "2.41.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/zitadel/zitadel/security/advisories/GHSA-2wmj-46rj-qm2w"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-49097"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/zitadel/zitadel"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-640" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-11-29T21:32:51Z",
"nvd_published_at" : "2023-11-30T05:15:09Z"
}
}