CVE-2022-29171

HIGH

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 w...

Affects 1 product across 1 vendor.

CVSS 3.17.2
EPSS1.4%
Percentile71th
PatchUnknown
CVSS Vector — Plain English Remotely exploitable over the network, low complexity, high privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
CWE Weakness Definitions
CWE-74: Injection

Parent class for all injection vulnerabilities where attacker-supplied data is interpreted as code or commands.

CWE-94: Code Injection

Attacker injects arbitrary code that is executed by the application process.

Related Attack Patterns (CAPEC)
CAPEC-3 Using Leading 'Ghost' Character Sequences to Bypass Input Filters
via CWE-74
CAPEC-7 Blind SQL Injection
via CWE-74
CAPEC-8 Buffer Overflow in an API Call
via CWE-74
CAPEC-9 Buffer Overflow in Local Command-Line Utilities
via CWE-74
CAPEC-10 Buffer Overflow via Environment Variables
via CWE-74
Show all 40
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-94
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-94
via CWE-74
via CWE-74
via CWE-74
via CWE-74
via CWE-94

Mapping is CWE-to-CAPEC per MITRE CAPEC 3.9.

◆ AI Analysis — automated analysis, not human-reviewed

Sourcegraph versions before 3.38.0 are vulnerable to Remote Code Execution (RCE) in the gitserver service due to improper handling of the `callsignCommand` parameter in Gitolite code host integration with Phabricator.

BSID: BS-2022-GLOBAL-068783-H • Model: /workspace/models/qwen2.5-coder-32b-instruct-bf16 • Confidence: HIGH

Is this CVE in your environment?

BreachSpider monitors your ICS/OT environment for vulnerabilities like this one. No agents or network access required. Free to start.

Check My Environment →
Frequently Asked Questions
What is CVE-2022-29171?
Sourcegraph versions before 3.38.0 are vulnerable to Remote Code Execution (RCE) in the gitserver service due to improper handling of the `callsignCommand` parameter in Gitolite code host integration with Phabricator.
What is the CVSS score for CVE-2022-29171?
CVE-2022-29171 has CVSS 7.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.4%.
Is CVE-2022-29171 actively exploited?
No confirmed active exploitation of CVE-2022-29171 as of 2026-09-25.
How do I remediate CVE-2022-29171?
Priority: HIGH.
What systems are affected by CVE-2022-29171?
CVE-2022-29171 affects Sourcegraph Sourcegraph.
Vulnerability Details
CVE IDCVE-2022-29171
BSIDBS-2022-GLOBAL-068783-H BreachSpider Global ID
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Published2022-05-06
Last Modified2026-06-17
ICS Relevance15%
Weakness (CWE)
SourceNVD
Official Description

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.

Source: NIST NVD / MITRE CVE Database

Attack Vector Analysis — CITED Relevance

An attacker with administrative privileges can specify a malicious `callsignCommand` to execute arbitrary code on the server hosting Sourcegraph.

Exploitation Likelihood: MEDIUM

Affected Products
VendorProductAffected Versions
Sourcegraph Sourcegraph < 3.38.0
Remediation

No official vendor advisory link on record. See the CVE record →

Threat Intelligence
● Threat Intelligence Validated: October 2026 | Threat Age: 1624 Days
CISA known-exploitedNot in KEV catalog
Public ExploitNot confirmed
PoC CodeNot confirmed
AI Enrichment Record — provenance & audit hash
Model/workspace/models/qwen2.5-coder-32b-instruct-bf16
ConfidenceHIGH
Enriched At2026-05-24
SHA-512 Audit Hash429efb1ef8f00a278a6f858a8041d8ca28a885ddb12f29711d5de296a2bd83dcd3d945a7a2e961b5f1c3e74156d26c0de34c5c7b2d7615266324a284c2eebc69
Related CVEs affecting Sourcegraph
CVE-2023-46248 8.8 Cody is an artificial intelligence (AI) coding assistant. The Cody AI VSCode ... CVE-2022-23642 8.8 Sourcegraph is a code search and navigation engine. Sourcegraph prior to vers... CVE-2022-41942 7.8 Sourcegraph is a code intelligence platform. In versions prior to 4.1.0 a com... CVE-2022-41943 7.2 sourcegraph is a code intelligence platform. As a site admin it was possible ... CVE-2021-43823 6.5 Sourcegraph is a code search and navigation engine. Sourcegraph prior to vers...
View all Sourcegraph CVEs →

ICS/OT Vulnerability Intelligence for Your Environment

BreachSpider tracks 384,000+ CVEs and matches them to your ICS/OT assets by exact version, with AI analysis, NERC CIP mapping, and vendor PSIRT contacts.

Create a free account →