A vulnerability in GitLab CE/EE affects all versions starting from 11.3.4 before 15.1.5, all versions starting from 15.2 before 15.2.3, and all versions starting from 15.3 before 15.3.1 allows an authenticated user to achieve remote code execution via the Import from GitHub API endpoint. This is a Critical severity issue with a CVSS score of 9.9 out of 10. It is now mitigated in the latest release and is assigned CVE-2022-2884.
Workarounds
If you’re unable to upgrade right away, you can secure your GitLab installation against this vulnerability using the workaround outlined below until you have time to upgrade.
Disable GitHub import
Login using an administrator account to your GitLab installation and perform the following:
- Click “Menu” -> “Admin”.
- Click “Settings” -> “General”.
- Expand the “Visibility and access controls” tab.
- Under “Import sources” disable the “GitHub” option.
- Click “Save changes”.
Verifying the workaround
- In a browser window, login as any user.
- Click “+” on the top bar.
- Click “New project/repository”.
- Click “Import project”.
- Verify that “GitHub” does not appear as an import option.
This post was created with our nice and easy submission form. Create your post!
GIPHY App Key not set. Please check settings