In all versions of GitLab CE/EE since version 11.11, an instance that has the setting to disable Repo by URL import enabled is bypassed by an attacker making a crafted API call.
Credits
Thanks @ngalog for reporting this vulnerability through our HackerOne bug bounty program