CVE-2022-29184
mediumpriority · track · 36EPSS 0.036 · 89 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.5–8.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (2)
Products and version ranges known to be affected.
also known as (2)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (13)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2022-29184/cnnvd
- https://github.com/gocd/gocd/commit/37d35115db2ada2190173f9413cfe1bc6c295ecbcnnvd
- https://github.com/gocd/gocd/releases/tag/22.1.0cnnvd
- https://github.com/gocd/gocd/security/advisories/GHSA-vf5r-r7j2-cf2hcnnvd
- https://www.gocd.org/releases/#22-1-0cnnvd
- https://github.com/gocd/gocd/commit/37d35115db2ada2190173f9413cfe1bc6c295ecbenisa_euvd
- https://github.com/gocd/gocd/releases/tag/22.1.0enisa_euvd
- https://github.com/gocd/gocd/security/advisories/GHSA-vf5r-r7j2-cf2henisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan