Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2022-23642

8.8 · HIGH
Published Feb 18, 2022 sourcegraph CWE-94 EPSS 74.31% (99th pctl)

Overview

CVE-2022-23642 is a high-severity vulnerability affecting sourcegraph sourcegraph. It was published on February 18, 2022 and has a CVSS 3.1 base score of 8.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 8.8, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

Technical 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.

Remediation

Check the references section for vendor advisories and patches from sourcegraph. Update sourcegraph to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
sourcegraph sourcegraph >= 0, < 3.37 Affected

Frequently Asked Questions

What is CVE-2022-23642?

CVE-2022-23642 is a high-severity vulnerability affecting sourcegraph sourcegraph. It was published on February 18, 2022 and has a CVSS 3.1 base score of 8.8 (HIGH).

How severe is CVE-2022-23642?

This vulnerability has a CVSS 3.1 base score of 8.8, rated HIGH. It can be exploited remotely over the network. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-23642?

Check the references section for vendor advisories and patches from sourcegraph. Update sourcegraph to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-23642?

CyberStrike's AI-powered security agents can automatically detect CVE-2022-23642 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.