OS Command Injection in Sourcegraph - CVE-2022-41942

 

OS Command Injection in Sourcegraph - CVE-2022-41942

Published: November 22, 2022


Vulnerability identifier: #VU69504
CSH Severity: Medium
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-41942
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation on the host parameter of the /list-gitolite endpoint. A remote user can pass specially crafted data to gitserver and execute arbitrary OS commands inside the container.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Sourcegraph

How to mitigate CVE-2022-41942

Install updates from vendor's website.

Sourcegraph - update to 4.1.0

External References

Related Security Bulletins