{"id":"CVE-2024-29891","aliases":["GHSA-hr5w-cwwq-2v4m","GO-2024-2665"],"url":"https://o3.security/vulnerability/CVE-2024-29891","summary":"ZITADEL Improper Content-Type Validation Leads to Account Takeover via Stored XSS + CSP Bypass","details":"### Impact\n\nZITADEL users can upload their own avatar image and various image types are allowed.\n\nDue to a missing check, an attacker could upload HTML and pretend it is an image to gain access to the victim's account in certain scenarios.\nA possible victim would need to directly open the supposed image in the browser, where a session in ZITADEL needs to be active for this exploit to work.\n\nThe exploit could only be reproduced if the victim was using Firefox. Chrome, Safari as well as Edge did not execute the code.\n\n### Patches\n\n2.x versions are fixed on >= [2.48.3](https://github.com/zitadel/zitadel/releases/tag/v2.48.3)\n2.47.x versions are fixed on >= [2.47.8](https://github.com/zitadel/zitadel/releases/tag/v2.47.8)\n2.46.x versions are fixed on >= [2.46.5](https://github.com/zitadel/zitadel/releases/tag/v2.46.5)\n2.45.x versions are fixed on >= [2.45.5](https://github.com/zitadel/zitadel/releases/tag/v2.45.5)\n2.44.x versions are fixed on >= [2.44.7](https://github.com/zitadel/zitadel/releases/tag/v2.44.7)\n2.43.x versions are fixed on >= [2.43.11](https://github.com/zitadel/zitadel/releases/tag/v2.43.11)\n2.42.x versions are fixed on >= [2.42.17](https://github.com/zitadel/zitadel/releases/tag/v2.42.17)\n\nZITADEL recommends upgrading to the latest versions available in due course.\n\n### Workarounds\n\nThere is no workaround since a patch is already available.\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\n### Credits\n\nThanks to Amit Laish – GE Vernova for finding and reporting the vulnerability.\n","published":"2024-03-27T19:18:08.078Z","modified":"2026-08-12T03:51:28.822463176Z","cvss":{"score":8.7,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N"},"epss":{"score":0.0076,"percentile":0.5171,"asOf":"2026-07-31"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/zitadel/zitadel","fixedVersion":"2.42.17"},{"ecosystem":"Go","name":"github.com/zitadel/zitadel","fixedVersion":"2.43.11"},{"ecosystem":"Go","name":"github.com/zitadel/zitadel","fixedVersion":"2.44.7"},{"ecosystem":"Go","name":"github.com/zitadel/zitadel","fixedVersion":"2.45.5"},{"ecosystem":"Go","name":"github.com/zitadel/zitadel","fixedVersion":"2.46.5"},{"ecosystem":"Go","name":"github.com/zitadel/zitadel","fixedVersion":"2.47.8"},{"ecosystem":"Go","name":"github.com/zitadel/zitadel","fixedVersion":"2.48.3"}],"fix":null,"references":[{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.42.17"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.43.11"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.44.7"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.45.5"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.46.5"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.47.8"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.48.3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/29xxx/CVE-2024-29891.json"},{"type":"ADVISORY","url":"https://github.com/zitadel/zitadel/security/advisories/GHSA-hr5w-cwwq-2v4m"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-29891"},{"type":"PACKAGE","url":"https://github.com/zitadel/zitadel"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:28.822463176Z"}}