RCE in Sourcegraph

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

Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)

Published · last modified .

CVSS v3 metric

CVSS v3 base score 7.9 (High). Vector: CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L.

EPSS exploit prediction

EPSS: 0.028 (85.9th percentile), scored .

Low probability of exploitation in the next 30 days, but still tracked. 86th percentile — 85.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2022-41942: held from 0.029 to 0.028.

EPSS over last 30 days · oldest: 0.029 · newest: 0.028 · change: -0.001

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2022-41942?
CVE-2022-41942 is a high-severity vulnerability in Sourcegraph, classified under Improper Input Validation. CVSS score: 7.9/10. Published 2022-11-22.
How severe is CVE-2022-41942?
High severity. CVSS v3 base score is 7.9 out of 10.