Arbitrary Code Execution Affecting github.com/sourcegraph/sourcegraph/enterprise/internal/database package, versions <3.38.0


0.0
medium

Snyk CVSS

    Attack Complexity High
    Privileges Required High
    Confidentiality High
    Integrity High
    Availability High

    Threat Intelligence

    EPSS 0.3% (70th percentile)
Expand this section
NVD
7.2 high

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 ID SNYK-GOLANG-GITHUBCOMSOURCEGRAPHSOURCEGRAPHENTERPRISEINTERNALDATABASE-2808878
  • published 6 May 2022
  • disclosed 6 May 2022
  • credit Unknown

How to fix?

Upgrade github.com/sourcegraph/sourcegraph/enterprise/internal/database to version 3.38.0 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Execution in the gitserver service. An administrator who is able to edit or add a Gitolite code host and has administrative access to Sourcegraph’s bundled Grafana instance can change this command arbitrarily and run it remotely. This grants direct access to the infrastructure underlying the Sourcegraph installation.

References