// For flags

CVE-2022-29184

Command Injection/Argument Injection in GoCD

Severity Score

8.8
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

-
*SSVC
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

*Credits: N/A
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Attack Vector
Network
Attack Complexity
Low
Authentication
Single
Confidentiality
Partial
Integrity
Partial
Availability
Partial
* Common Vulnerability Scoring System
SSVC
  • Decision:-
Exploitation
-
Automatable
-
Tech. Impact
-
* Organization's Worst-case Scenario
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
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