Sourcegraph is a fast and featureful code search and navigation engine. Versions before 3.38.0 are vulnerable to Remote Code Execution in the gitserver service. The Gitolite code host integration with Phabricator allows Sourcegraph site admins to specify a `callsignCommand`, which is used to obtain the Phabricator metadata for a Gitolite repository. 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. The attack requires: site-admin privileges on the instance of Sourcegraph, Administrative privileges on the bundled Grafana monitoring instance, Knowledge of the gitserver IP address or DNS name (if running in Kubernetes). This can be found through Grafana. The issue is patched in version 3.38.0. You may disable Gitolite code hosts. We still highly encourage upgrading regardless of workarounds.
References
Link | Resource |
---|---|
https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-r2m9-hfg8-4c38 | Third Party Advisory |
Configurations
History
21 Jul 2023, 16:42
Type | Values Removed | Values Added |
---|---|---|
CWE | CWE-94 |
17 May 2022, 13:39
Type | Values Removed | Values Added |
---|---|---|
CWE | CWE-74 | |
CPE | cpe:2.3:a:sourcegraph:sourcegraph:*:*:*:*:*:*:*:* | |
References | (CONFIRM) https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-r2m9-hfg8-4c38 - Third Party Advisory | |
CVSS |
v2 : v3 : |
v2 : 6.0
v3 : 7.2 |
06 May 2022, 00:15
Type | Values Removed | Values Added |
---|---|---|
New CVE |
Information
Published : 2022-05-06 00:15
Updated : 2024-02-04 22:29
NVD link : CVE-2022-29171
Mitre link : CVE-2022-29171
CVE.ORG link : CVE-2022-29171
JSON object : View
Products Affected
sourcegraph
- sourcegraph