CVE-2022-41942
Sourcegraph is a code intelligence platform. In versions prior to 4.1.0 a command Injection vulnerability existed in the gitserver service, present in all Sourcegraph deployments. This vulnerabilit...
Affects 1 product across 1 vendor.
Software does not validate or incorrectly validates input, allowing attackers to craft data processed in unintended ways.
Attacker injects OS commands through application inputs passed to system() or equivalent calls, leading to arbitrary command execution.
Show all 53
Mapping is CWE-to-CAPEC per MITRE CAPEC 3.9.
A command injection vulnerability exists in Sourcegraph versions prior to 4.1.0, affecting the gitserver service. This issue arises from insufficient validation of the host parameter in the /list-gitolite endpoint, allowing for the execution of arbitrary commands within the container.
BSID: BS-2022-GLOBAL-064430-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 →What is CVE-2022-41942?
What is the CVSS score for CVE-2022-41942?
Is CVE-2022-41942 actively exploited?
How do I remediate CVE-2022-41942?
What systems are affected by CVE-2022-41942?
| CVE ID | CVE-2022-41942 |
|---|---|
| BSID | BS-2022-GLOBAL-064430-H BreachSpider Global ID |
| CVSS Vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2022-11-22 |
| Last Modified | 2024-11-21 |
| ICS Relevance | 15% |
| Weakness (CWE) | |
| Source | NVD |
Sourcegraph is a code intelligence platform. In versions prior to 4.1.0 a command Injection vulnerability existed in the gitserver service, present in all Sourcegraph deployments. This vulnerability was caused by a lack of input validation on the host parameter of the `/list-gitolite` endpoint. It was possible to send a crafted request to gitserver that would execute commands inside the container. Successful exploitation requires the ability to send local requests to gitserver. The issue is patched in version 4.1.0.
Source: NIST NVD / MITRE CVE Database
An attacker can exploit this vulnerability by sending a specially crafted request to the /list-gitolite endpoint with a maliciously constructed host parameter. This can lead to command execution within the gitserver container, potentially compromising the integrity and confidentiality of the system.
Exploitation Likelihood: MEDIUM
| Vendor | Product | Affected Versions |
|---|---|---|
| Sourcegraph | Sourcegraph | < 4.1.0 |
No official vendor advisory link on record. See the CVE record →
| CISA known-exploited | Not in KEV catalog |
|---|---|
| Public Exploit | Not confirmed |
| PoC Code | Not confirmed |
AI Enrichment Record — provenance & audit hash
| Model | /workspace/models/qwen2.5-coder-32b-instruct-bf16 |
|---|---|
| Confidence | HIGH |
| Enriched At | 2026-05-24 |
| SHA-512 Audit Hash | b0299ed23d4d1015d1db91dc3ead809fa7db15486bbe691240a6fdcd6a9e988a3ab71493cae47f30516967c975f8ff6c6899af78ebd842ae65363913bb4f120d |
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 →