CVE-2022-41942
Sourcegraph vulnerable to Comand Injection via gitserver
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
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.
Sourcegraph es una plataforma de inteligencia de código. En versiones anteriores a la 4.1.0 existía una vulnerabilidad de inyección de comandos en el servicio gitserver, presente en todas las implementaciones de Sourcegraph. Esta vulnerabilidad fue causada por una falta de validación de entrada en el parámetro de host del endpoint `/list-gitolite`. Era posible enviar una solicitud manipulada a gitserver que ejecutaría comandos dentro del contenedor. La explotación exitosa requiere la capacidad de enviar solicitudes locales a gitserver. El problema se solucionó en la versión 4.1.0.
CVSS Scores
SSVC
- Decision:-
Timeline
- 2022-09-30 CVE Reserved
- 2022-11-22 CVE Published
- 2024-08-03 CVE Updated
- 2024-12-17 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-20: Improper Input Validation
- CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
CAPEC
References (2)
URL | Tag | Source |
---|---|---|
https://github.com/sourcegraph/sourcegraph/security/advisories/GHSA-pfm3-23mh-6xjp | Third Party Advisory |
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://github.com/sourcegraph/sourcegraph/pull/42553 | 2022-11-26 |
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Sourcegraph Search vendor "Sourcegraph" | Sourcegraph Search vendor "Sourcegraph" for product "Sourcegraph" | < 4.1.0 Search vendor "Sourcegraph" for product "Sourcegraph" and version " < 4.1.0" | - |
Affected
|