Command Injection in GitLab Runner - CVE-2022-2251

 

Command Injection in GitLab Runner - CVE-2022-2251

Published: November 7, 2022


Vulnerability identifier: #VU68985
CSH Severity: Medium
CVSS v4: 7.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-2251
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability: No public exploit 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 in CI jobs within branch name in CI pipelines. 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 Runner

How to mitigate CVE-2022-2251

Install updates from vendor's website.

GitLab Runner - addressed in versions 15.3.5, 15.4.4, 15.5.2

External References

Related Security Bulletins