Command Injection in Gitlab Community Edition and GitLab Enterprise Edition - CVE-2022-2992
Published: August 31, 2022 / Updated: February 15, 2023
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary commands on the target system.
The vulnerability exists due to improper input validation within the Import from GitHub API endpoint. A remote user can pass specially crafted data to the application and execute arbitrary commands on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
GitLab Enterprise Edition
How to mitigate CVE-2022-2992
GitLab Enterprise Edition - addressed in versions 15.1.6, 15.2.4, 15.3.2
Links to Public Exploits and PoC-codes
- Exploit #8839 - GitLab GitHub Repo Import Deserialization RCE (February 15, 2023)
- Exploit #8582 - CVEs (A collection of proof-of-concept exploit scripts written by the team at Redway Security for various CVEs.) (November 7, 2022)
- Exploit #8483 - CVE-2022-2992 (Authenticated Remote Command Execution in Gitlab via GitHub import.) (October 16, 2022)
- Exploit #8466 - CVE-2022-2992 () (October 13, 2022)