#VU69504 OS Command Injection in Sourcegraph - CVE-2022-41942

 

#VU69504 OS Command Injection in Sourcegraph - CVE-2022-41942

Published: November 22, 2022


Vulnerability identifier: #VU69504
Vulnerability risk: Medium
CVSSv4.0: 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/E:U/U:Green
CVE-ID: CVE-2022-41942
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
Sourcegraph
Software vendor:
Sourcegraph

Description

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.


Remediation

Install updates from vendor's website.

External links