Code Injection in Sourcegraph - CVE-2022-23642

 

Code Injection in Sourcegraph - CVE-2022-23642

Published: June 20, 2022 / Updated: July 27, 2022


Vulnerability identifier: #VU64491
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-23642
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to improper input validation in the "gitserver" service. A remote user can send a specially crafted request and execute arbitrary code on the target system.

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


Affected software

Sourcegraph

How to mitigate CVE-2022-23642

Install updates from vendor's website.

Sourcegraph - update to 3.37.0

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins