CVE-2022-29184
Command Injection/Argument Injection in GoCD
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
GoCD is a continuous delivery server. In GoCD versions prior to 22.1.0, it is possible for existing authenticated users who have permissions to edit or create pipeline materials or pipeline configuration repositories to get remote code execution capability on the GoCD server via configuring a malicious branch name which abuses Mercurial hooks/aliases to exploit a command injection weakness. An attacker would require access to an account with existing GoCD administration permissions to either create/edit (`hg`-based) configuration repositories; create/edit pipelines and their (`hg`-based) materials; or, where "pipelines-as-code" configuration repositories are used, to commit malicious configuration to such an external repository which will be automatically parsed into a pipeline configuration and (`hg`) material definition by the GoCD server. This issue is fixed in GoCD 22.1.0. As a workaround, users who do not use/rely upon Mercurial materials can uninstall/remove the `hg`/Mercurial binary from the underlying GoCD Server operating system or Docker image.
GoCD es un servidor de entrega continua. En GoCD versiones anteriores a 22.1.0, es posible que los usuarios autenticados existentes que presentan permisos para editar o crear materiales de canalización o repositorios de configuración de canalización obtengan la capacidad de ejecución de código remota en el servidor GoCD por medio de la configuración de un nombre de rama malicioso que abusa de los ganchos/aliases de Mercurial para explotar una debilidad de inyección de comandos. Un atacante necesitaría acceder a una cuenta con permisos de administración de GoCD para crear/editar repositorios de configuración (basados en "hg"); crear/editar pipelines y sus materiales (basados en "hg"); o, cuando son usados repositorios de configuración "pipelines-as-code", enviar una configuración maliciosa a dicho repositorio externo que será analizada automáticamente en una configuración de pipeline y una definición de material ("hg") por el servidor GoCD. Este problema ha sido corregido en GoCD versión 22.1.0. Como mitigación, los usuarios que no usan/dependen de los materiales Mercurial pueden desinstalar/eliminar el binario "hg"/Mercurial del sistema operativo subyacente del servidor GoCD o de la imagen Docker
CVSS Scores
SSVC
- Decision:-
Timeline
- 2022-04-13 CVE Reserved
- 2022-05-20 CVE Published
- 2024-08-03 CVE Updated
- 2024-11-01 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
- CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
CAPEC
References (4)
URL | Tag | Source |
---|---|---|
https://github.com/gocd/gocd/releases/tag/22.1.0 | Release Notes | |
https://github.com/gocd/gocd/security/advisories/GHSA-vf5r-r7j2-cf2h | Third Party Advisory |
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://github.com/gocd/gocd/commit/37d35115db2ada2190173f9413cfe1bc6c295ecb | 2022-06-06 |
URL | Date | SRC |
---|---|---|
https://www.gocd.org/releases/#22-1-0 | 2022-06-06 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Thoughtworks Search vendor "Thoughtworks" | Gocd Search vendor "Thoughtworks" for product "Gocd" | < 22.1.0 Search vendor "Thoughtworks" for product "Gocd" and version " < 22.1.0" | - |
Affected
|