An authenticated user can import a repository from GitHub into GitLab. If a user attempts to import a repo from an attacker-controlled server, the server will reply with a Redis serialization protocol object in the nested `default_branch`. GitLab will cache this object and then deserialize it when trying to load a user session, resulting in RCE.
Exploit database
Vulnerability
CVE-2022-2992
Vulnerability details
- Score
- 9.9
- Severity
- critical
CVSS 3.1 · GitLab
Vector string
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HDescription
A vulnerability in GitLab CE/EE affecting all versions from 11.10 prior to 15.1.6, 15.2 to 15.2.4, 15.3 to 15.3.2 allows an authenticated user to achieve remote code execution via the Import from GitHub API endpoint.
CVE ProgramShowing saved CVE details. Refresh is temporarily unavailable.
Exploit source choices
6 sourcesGitLab GitHub Repo Import Deserialization RCE
2022-10-06gitlab_github_import_rce_cve_2022_2992.rb
csenox/cve-2022-2992
Authenticated Remote Command Execution in Gitlab via GitHub import
2022-10-087 files · 224 stars
aneasystone/github-trending
使用 Github Actions 跟踪 Github 趋势项目。
2022-08-0955 files · 213 stars
cvedb/awesome-cve-repo
cvedb/awesome-cve-repo source repository
2023-03-237 files · 9 stars
malwareman007/cve-2022-2992
Authenticated Remote Command Execution in Gitlab via GitHub import.
2022-10-149 files · 8 stars
cvedb/top
cvedb/top source repository
2023-03-1911 files · 2 stars