{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-41942","published":"2022-11-22T19:15:18.017000Z","last_modified":"2026-06-17T05:04:06.423000Z","status":"Modified","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-20","CWE-78"],"cpes":[{"criteria":"cpe:2.3:a:sourcegraph:sourcegraph:*:*:*:*:*:*:*:*","part":"a","vendor":"sourcegraph","product":"sourcegraph","version_end_excluding":"4.1.0"}],"cpes_truncated":false,"vendors":["sourcegraph"],"products":["sourcegraph/sourcegraph"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"epss":{"score":0.02462,"percentile":0.85194,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2022-41942/","html_en":"/en/cve/CVE-2022-41942/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-41942","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-41942"},"untrusted":{"vendor_name":"Sourcegraph","product_name":"Sourcegraph","desc_en":"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.","affected":[{"untrusted_vendor":"sourcegraph","untrusted_product":"sourcegraph","versions":[]}],"references":[{"url":"https://github.com/sourcegraph/sourcegraph/pull/42553","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-pfm3-23mh-6xjp","tags":["Third Party Advisory"]}]}}