#VU64491 Code Injection in Sourcegraph


Published: 2022-06-20 | Updated: 2022-07-27

Vulnerability identifier: #VU64491

Vulnerability risk: Medium

CVSSv3.1: 8.2 [CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C]

CVE-ID: CVE-2022-23642

CWE-ID: CWE-94

Exploitation vector: Network

Exploit availability: Yes

Vulnerable software:
Sourcegraph
Client/Desktop applications / Other client software

Vendor: Sourcegraph

Description

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.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Sourcegraph: 3.0.0 - 3.36.3


External links
http://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-qcmp-fx72-q8q9
http://github.com/sourcegraph/sourcegraph/pull/30833


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, a fully functional exploit for this vulnerability is available.


Latest bulletins with this vulnerability