CVE-2022-29184 in Thoughtworks Gocd
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 w...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Thoughtworks | Gocd | < 22.1.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-29184 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-068445-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2022-05-20 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-77: Command Injection
Attacker injects operating system commands through application inputs passed to a shell or system call.
CWE-88: CWE-88
Related attack patterns (CAPEC)
CAPEC-41 Using Meta-characters in E-mail Headers to Inject Malicious Payloads via CWE-88
CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-77
CAPEC-76 Manipulating Web Input to File System Calls via CWE-77
CAPEC-174 Flash Parameter Injection via CWE-88
CAPEC-460 HTTP Parameter Pollution (HPP) via CWE-88
Show all 13
CAPEC-15 Command Delimiters via CWE-77
CAPEC-40 Manipulating Writeable Terminal Devices via CWE-77
CAPEC-75 Manipulating Writeable Configuration Files via CWE-77
CAPEC-88 OS Command Injection via CWE-88
CAPEC-136 LDAP Injection via CWE-77
CAPEC-183 IMAP/SMTP Command Injection via CWE-77
CAPEC-137 Parameter Injection via CWE-88
CAPEC-248 Command Injection via CWE-77
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2022-29184 affects GoCD versions prior to 22.1.0, allowing authenticated users with specific permissions to execute remote code on the server through a malicious branch name that exploits Mercurial hooks/aliases.
Authenticated users with permissions to edit or create pipeline materials or pipeline configuration repositories can craft a malicious branch name that includes commands. These commands are executed on the GoCD server due to a command injection vulnerability in Mercurial hooks/aliases.
Questions
What is CVE-2022-29184?
CVE-2022-29184 affects GoCD versions prior to 22.1.0, allowing authenticated users with specific permissions to execute remote code on the server through a malicious branch name that exploits Mercurial hooks/aliases.
What is the CVSS score for CVE-2022-29184?
CVE-2022-29184 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 4.2%.
Is CVE-2022-29184 actively exploited?
No confirmed active exploitation of CVE-2022-29184 as of 2026-09-25.
How do I remediate CVE-2022-29184?
Priority: IMMEDIATE. PSIRT: [email protected]
What systems are affected by CVE-2022-29184?
CVE-2022-29184 affects Thoughtworks Gocd.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Thoughtworks","product":"Gocd","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.