CVE-2024-29891: ZITADEL Improper Content-Type Validation Leads to Account Takeover via Stored XSS + CSP Bypass

Published Mar 27, 2024
·
Updated

Impact

ZITADEL users can upload their own avatar image and various image types are allowed.

Due 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. A 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.

The exploit could only be reproduced if the victim was using Firefox. Chrome, Safari as well as Edge did not execute the code.

Patches

2.x versions are fixed on >= 2.48.3 2.47.x versions are fixed on >= 2.47.8 2.46.x versions are fixed on >= 2.46.5 2.45.x versions are fixed on >= 2.45.5 2.44.x versions are fixed on >= 2.44.7 2.43.x versions are fixed on >= 2.43.11 2.42.x versions are fixed on >= 2.42.17

ZITADEL recommends upgrading to the latest versions available in due course.

Workarounds

There is no workaround since a patch is already available.

References

None

Questions

If you have any questions or comments about this advisory, please email us at security@zitadel.com

Credits

Thanks to Amit Laish – GE Vernova for finding and reporting the vulnerability.

Other sources

ZITADEL users can upload their own avatar image and various image types are allowed. Due 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. A 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. The exploit could only be reproduced if the victim was using Firefox. Chrome, Safari as well as Edge did not execute the code. This vulnerability is fixed in 2.48.3, 2.47.8, 2.46.5, 2.45.5, 2.44.7, 2.43.11, and 2.42.17.

— MITRE

Affected Software

14 affected componentsFixes available
ZITADEL ZITADEL<2.42.17
ZITADEL ZITADEL>=2.43.0<2.43.11
ZITADEL ZITADEL>=2.44.0<2.44.7
ZITADEL ZITADEL>=2.45.0<2.45.5
ZITADEL ZITADEL>=2.46.0<2.46.5
ZITADEL ZITADEL>=2.47.0<2.47.8
ZITADEL ZITADEL>=2.48.0<2.48.3
go/github.com/zitadel/zitadel>=2.48.0<2.48.3
2.48.3
go/github.com/zitadel/zitadel>=2.47.0<2.47.8
2.47.8
go/github.com/zitadel/zitadel>=2.46.0<2.46.5
2.46.5
go/github.com/zitadel/zitadel>=2.45.0<2.45.5
2.45.5
go/github.com/zitadel/zitadel>=2.44.0<2.44.7
2.44.7
go/github.com/zitadel/zitadel>=2.43.0<2.43.11
2.43.11
go/github.com/zitadel/zitadel<2.42.17
2.42.17

Event History

Mar 27, 2024
CVE Published
via MITRE·07:18 PM
Data Sourced
via MITRE·07:18 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Mar 28, 2024
Advisory Published
via GitHub·05:07 PM
Data Sourced
via GitHub·05:07 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-29891?

CVE-2024-29891 is considered a medium severity vulnerability that could allow an attacker to upload malicious HTML disguised as an image.

2

How do I fix CVE-2024-29891?

To fix CVE-2024-29891, update ZITADEL to version 2.48.3, 2.47.8, 2.46.5, 2.45.5, or 2.44.7.

3

What versions of ZITADEL are affected by CVE-2024-29891?

CVE-2024-29891 affects ZITADEL versions prior to 2.48.3, 2.47.8, 2.46.5, 2.45.5, and 2.44.7.

4

Can CVE-2024-29891 allow an attacker to access user accounts?

Yes, CVE-2024-29891 can allow an attacker to gain access to a victim's account under certain circumstances.

5

What type of vulnerability is CVE-2024-29891?

CVE-2024-29891 is an input validation vulnerability related to file uploads.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203