CVE-2022-41942
Summary
| CVE | CVE-2022-41942 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-11-22 19:15:00 UTC |
| Updated | 2022-11-26 03:30:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-20 | CWE-78
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Sourcegraph | Sourcegraph | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Add hostname validation by evict · Pull Request #42553 · sourcegraph/sourcegraph · GitHub | MISC | github.com | |
| Command Injection in gitserver · Advisory · sourcegraph/sourcegraph · GitHub | CONFIRM | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.