Unrestricted Upload of File with Dangerous Type Affecting github.com/zitadel/zitadel/internal/api/assets package, versions <2.42.17>=2.43.0-rc.1 <2.43.11>=2.44.0-rc.1 <2.44.7>=2.45.0-rc.1 <2.45.5>=2.46.0-rc.1 <2.46.5>=2.47.0-rc.1 <2.47.8>=2.48.0-rc.1 <2.48.3


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (41st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Unrestricted Upload of File with Dangerous Type vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMZITADELZITADELINTERNALAPIASSETS-6509062
  • published28 Mar 2024
  • disclosed27 Mar 2024
  • creditAmit Laish

Introduced: 27 Mar 2024

CVE-2024-29891  (opens in a new tab)
CWE-434  (opens in a new tab)

How to fix?

Upgrade github.com/zitadel/zitadel/internal/api/assets to version 2.42.17, 2.43.11, 2.44.7, 2.45.5, 2.46.5, 2.47.8, 2.48.3 or higher.

Overview

Affected versions of this package are vulnerable to Unrestricted Upload of File with Dangerous Type by bypassing the ContentTypeAllowed() function in asset.go with a malicious avatar image upload. Files with MIME types not intended for use as avatar images are allowed. To be vulnerable, a different user needs to open the malicious file in a browser during an active ZITADEL session. This vulnerability was only produced on Firefox. Chrome, Safari, and Edge were not found to be vulnerable.

CVSS Base Scores

version 3.1