CVE-2022-23642: Code Injection in Sourcegraph
Affected: sourcegraph · Exploitation: likely to be exploited (10% or more)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 99% of scored CVEs
DescriptionCVE.org
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.
Affected products1
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- sourcegraph · sourcegraph< 3.37
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Likely to be exploited (10% or more). EPSS gives it a 10% or higher chance of exploitation in the next 30 days.
- CISA KEV
- Not listed
- Public check
- No public nuclei template
- Vendor
- sourcegraph
- Published
- February 2022
CoverageNo articles yet
No CyberSIXT article names CVE-2022-23642 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-94cwe.mitre.org
- github.com/sourcegraph/sourcegraph/security/advisories/GHSA-qcmpgithub.com
- github.com/sourcegraph/sourcegraph/pull/30833github.com
- packetstormsecurity.com/files/167506/Sourcegraph-Gitserver-3.36.packetstormsecurity.com
- packetstormsecurity.com/files/167741/Sourcegraph-gitserver-sshCopacketstormsecurity.com