Arbitrary Command Injection Affecting github.com/sourcegraph/sourcegraph/cmd/gitserver/server package, versions <4.1.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (30th 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 Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMSOURCEGRAPHSOURCEGRAPHCMDGITSERVERSERVER-3145121
  • published23 Nov 2022
  • disclosed23 Nov 2022
  • creditUnknown

Introduced: 23 Nov 2022

CVE-2022-41942  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade github.com/sourcegraph/sourcegraph/cmd/gitserver/server to version 4.1.0 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Command Injection via the host parameter on the /list-gitolite endpoint. An attacker can inject commands by sending local requests to the vulnerable endpoint.

CVSS Scores

version 3.1