Vulnerability Description
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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Sourcegraph | Sourcegraph | < 4.1.0 |
Related Weaknesses (CWE)
References
- https://github.com/sourcegraph/sourcegraph/pull/42553PatchThird Party Advisory
- https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-pfm3-23mh-6xThird Party Advisory
- https://github.com/sourcegraph/sourcegraph/pull/42553PatchThird Party Advisory
- https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-pfm3-23mh-6xThird Party Advisory
FAQ
What is CVE-2022-41942?
CVE-2022-41942 is a vulnerability with a CVSS score of 7.9 (HIGH). 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 w...
How severe is CVE-2022-41942?
CVE-2022-41942 has been rated HIGH with a CVSS base score of 7.9/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2022-41942?
Check the references section above for vendor advisories and patch information. Affected products include: Sourcegraph Sourcegraph.