CVE-2022-23642

Scores

EPSS

0.853high85.3%
0%20%40%60%80%100%

Percentile: 85.3%

CVSS

8.8high3.x
0246810

CVSS Score: 8.8/10

All CVSS Scores

CVSS 3.x
8.8

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS 2.0
6.0

Vector: AV:N/AC:M/Au:S/C:P/I:P/A:P

Description

Sourcegraph is a code search and navigation engine. Sourcegraph prior to version 3.37 is vulnerable to remote code execution in the gitserver service. The service acts as a git exec proxy, and fails to properly restrict calling git config. This allows an attacker to set the git core.sshCommand option, which sets git to use the specified command instead of ssh when they need to connect to a remote system. Exploitation of this vulnerability depends on how Sourcegraph is deployed. An attacker able to make HTTP requests to internal services like gitserver is able to exploit it. This issue is patched in Sourcegraph version 3.37. As a workaround, ensure that requests to gitserver are properly protected.

Scaner-VS 7 — a modern vulnerability management solution

Uses this database for vulnerability detection. High-speed search, cross-platform, advanced configuration audit, and flexible filtering. Suitable for organizations of any size.
Learn more about Scaner-VS 7

Sources

nvd

CWEs

CWE-94

Related Vulnerabilities

Exploits

Exploit ID: 50964

Source: exploitdb

URL: https://www.exploit-db.com/exploits/50964

Exploit ID: CVE-2022-23642

Source: github-poc

URL: https://github.com/Altelus1/CVE-2022-23642

Vulnerable Software (1)

Type: Configuration

Vendor: *

Product: sourcegraph

Operating System: * * *

Trait:
{  "cpe_match": [    {      "cpe23uri": "cpe:2.3:a:sourcegraph:sourcegraph:*:*:*:*:*:*:*:*",      "versionEndExcluding": "3.37",      "vulnerable": true    }  ],  "operator": "OR"}

Source: nvd

End of list