Command Injection in GitLab Enterprise Edition and Gitlab Community Edition - CVE-2022-2185

 

Command Injection in GitLab Enterprise Edition and Gitlab Community Edition - CVE-2022-2185

Published: July 1, 2022 / Updated: July 30, 2022


Vulnerability identifier: #VU64840
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-2185
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability: Public exploit is available

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 Project Imports. 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
Gitlab Community Edition

How to mitigate CVE-2022-2185

Install updates from vendor's website.

GitLab Enterprise Edition - addressed in versions 14.10.5, 15.0.4, 15.1.1
Gitlab Community Edition - addressed in versions 14.10.5, 15.0.4, 15.1.1

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins