Description
An issue has been discovered in GitLab CE/EE affecting all versions before 18.1.5, 18.2 before 18.2.5, and 18.3 before 18.3.1 that under certain conditions could have allowed an authenticated attacker to distribute malicious code that appears harmless in the web interface by taking advantage of ambiguity between branches and tags during repository imports.
Problem types
CWE-94: Improper Control of Generation of Code ('Code Injection')
Product status
Any version before 18.1.5
18.2 before 18.2.5
18.3 before 18.3.1
Credits
Thanks [st4nly0n](https://hackerone.com/st4nly0n) for reporting this vulnerability through our HackerOne bug bounty program
References
gitlab.com/gitlab-org/gitlab/-/issues/545165 (GitLab Issue #545165)
hackerone.com/reports/3124199 (HackerOne Bug Bounty Report #3124199)