What’s Vulnerable › Vulnerabilities
CVE-2021-43286
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.9% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-04-14 · updated 2026-06-17
- Weakness: CWE-77
Description
An issue was discovered in ThoughtWorks GoCD before 21.3.0. An attacker with privileges to create a new pipeline on a GoCD server can abuse a command-line injection in the Git URL "Test Connection" feature to execute arbitrary code.
Affected products
- gocd: before 21.3.0 — fixed in 21.3.0
How to fix
Upgrade to a fixed version: gocd 21.3.0. Check the vendor advisory for mitigations.
References
- https://blog.sonarsource.com/gocd-vulnerability-chain
- https://github.com/gocd/gocd/commit/2b77b533abcbb79c8fc758dec9984305dc1ade42
- https://github.com/gocd/gocd/commit/6fa9fb7a7c91e760f1adc2593acdd50f2d78676b
- https://www.gocd.org/releases/#21-3-0
- https://blog.sonarsource.com/gocd-vulnerability-chain
- https://github.com/gocd/gocd/commit/2b77b533abcbb79c8fc758dec9984305dc1ade42
- https://github.com/gocd/gocd/commit/6fa9fb7a7c91e760f1adc2593acdd50f2d78676b
- https://www.gocd.org/releases/#21-3-0
Get alerted when CVE-2021-43286 or the next vulnerability affects your stack