Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/zitadel/zitadel
  4. ›
  5. CVE-2024-29891

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

March 28, 2024 (updated January 8, 2025)

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.

References

  • github.com/advisories/GHSA-hr5w-cwwq-2v4m
  • github.com/zitadel/zitadel
  • github.com/zitadel/zitadel/releases/tag/v2.42.17
  • github.com/zitadel/zitadel/releases/tag/v2.43.11
  • github.com/zitadel/zitadel/releases/tag/v2.44.7
  • github.com/zitadel/zitadel/releases/tag/v2.45.5
  • github.com/zitadel/zitadel/releases/tag/v2.46.5
  • github.com/zitadel/zitadel/releases/tag/v2.47.8
  • github.com/zitadel/zitadel/releases/tag/v2.48.3
  • github.com/zitadel/zitadel/security/advisories/GHSA-hr5w-cwwq-2v4m
  • nvd.nist.gov/vuln/detail/CVE-2024-29891

Code Behaviors & Features

Detect and mitigate CVE-2024-29891 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.42.17, all versions starting from 2.43.0 before 2.43.11, all versions starting from 2.44.0 before 2.44.7, all versions starting from 2.45.0 before 2.45.5, all versions starting from 2.46.0 before 2.46.5, all versions starting from 2.47.0 before 2.47.8, all versions starting from 2.48.0 before 2.48.3

Fixed versions

  • 2.42.17
  • 2.43.11
  • 2.44.7
  • 2.45.5
  • 2.46.5
  • 2.47.8
  • 2.48.3

Solution

Upgrade to versions 2.42.17, 2.43.11, 2.44.7, 2.45.5, 2.46.5, 2.47.8, 2.48.3 or above.

Impact 8.7 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-434: Unrestricted Upload of File with Dangerous Type
  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

go/github.com/zitadel/zitadel/CVE-2024-29891.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:08 +0000.