{"id":"CVE-2022-41942","published":"2022-11-22T00:00:00Z","modified":"2025-04-23T16:36:07Z","title":"Sourcegraph vulnerable to Comand Injection via gitserver","vendor":"sourcegraph","product":"sourcegraph","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.9,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02666,"percentile":0.86093,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-pfm3-23mh-6xjp","tags":[]},{"url":"https://github.com/sourcegraph/sourcegraph/pull/42553","tags":[]}],"priority":{"score":22.7,"factors":[{"name":"EPSS percentile","points":17.22},{"name":"CVSS severity","points":5.53}]},"vendorSlug":"sourcegraph","affectedVersions":[{"vendor":"sourcegraph","product":"sourcegraph","versions":["< 4.1.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:46:32.465895Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-45053","exploited":false,"provenance":"source"}}