Live threats

All CVEs / Sourcegraph

CVE-2022-41942Sourcegraph

High 7.8

Priority
47
CVSS 3.1
7.8
EPSS
2.5%
probability of exploitation in 30 days · percentile 85
Auth required
Yes
Published
Nov 22, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-20, CWE-78
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Sourcegraph.

Affected products (CPE)

VendorProductVersions
sourcegraphsourcegraph< 4.1.0

Official sources

References

Links published by the sources. Open them with care.