CVE-2022-41942
Last modified
CVE-2022-41942 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 1.52% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Sourcegraph | Sourcegraph | < 4.1.0 |
References
- https://github.com/sourcegraph/sourcegraph/pull/42553Patch, Third Party Advisory
- https://github.com/sourcegraph/sourcegraph/pull/42553Patch, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-41942?
How severe is CVE-2022-41942?
How do I fix CVE-2022-41942?
Are you affected by CVE-2022-41942?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
