Remote Code Execution (RCE) The advisory has been revoked - it doesn't affect any version of package github.com/sourcegraph/sourcegraph/internal/vcs/git  (opens in a new tab)


Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
74.31% (100th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMSOURCEGRAPHSOURCEGRAPHINTERNALVCSGIT-2407258
  • published20 Feb 2022
  • disclosed20 Feb 2022
  • creditdavid-sandy

Introduced: 20 Feb 2022

CVE-2022-23642  (opens in a new tab)
CWE-94  (opens in a new tab)

Amendment

This was deemed not a vulnerability.

Overview

Affected versions of this package are vulnerable to Remote Code Execution (RCE) in the gitserver service, which fails to properly restrict calling git config. It allows attackers 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.