Vulnerabilities · 2022 · Sourcegraph
CVE-2022-41942
Sourcegraph vulnerability
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 products
Sourcegraph. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Sourcegraph runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
More vulnerabilities in Sourcegraph products
CVE-2023-46248CVE-2022-41943CVE-2022-31155CVE-2022-31154CVE-2022-29171CVE-2022-23643CVE-2022-23642CVE-2021-43823All 11
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.