Insufficient validation in GitLab CE/EE affecting all versions from 12.10 prior to 15.0.5, 15.1 prior to 15.1.4, and 15.2 prior to 15.2.1 allows an authenticated and authorised user to import a project that includes branch names which are 40 hexadecimal characters, which could be abused in supply chain attacks where a victim pinned to a specific Git commit of the project.
https://gitlab.com/gitlab-org/gitlab/-/issues/361179
https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-2417.json