RCE in Sourcegraph
CVE-2022-23642
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 conf…
Vulnerability class: RCE (Remote Code Execution)
EPSS: 0.853 (99.4th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Sourcegraph — versions < 3.37
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/sourcegraph/sourcegraph/security/advisories/GHSA-qcmp-fx72-q8q9 (x_refsource_CONFIRM)
- github.com/sourcegraph/sourcegraph/pull/30833 (x_refsource_MISC)
- packetstormsecurity.com/files/167506/Sourcegraph-Gitserver-3.36.3-Remote-Code-E… (x_refsource_MISC)
- packetstormsecurity.com/files/167741/Sourcegraph-gitserver-sshCommand-Remote-Co… (x_refsource_MISC)
Frequently asked questions
- What is CVE-2022-23642?
- CVE-2022-23642 is a high-severity vulnerability in Sourcegraph, classified under Code Injection. CVSS score: 8.8/10. Published 2022-02-18.
- How severe is CVE-2022-23642?
- High severity. CVSS v3 base score is 8.8 out of 10.
- Is CVE-2022-23642 known to be exploited?
- 14 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.