What’s Vulnerable › Vulnerabilities
CVE-2022-39310: Malicious agent may be able to impersonate another agent in GoCD
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-10-14 · updated 2026-06-17
- Weakness: CWE-284
Description
GoCD is a continuous delivery server. GoCD helps you automate and streamline the build-test-release cycle for continuous delivery of your product. GoCD versions prior to 21.1.0 can allow one authenticated agent to impersonate another agent, and thus receive work packages for other agents due to broken access control and incorrect validation of agent tokens within the GoCD server. Since work packages can contain sensitive information such as credentials intended only for a given job running against a specific agent environment, this can cause accidental information disclosure. Exploitation requires knowledge of agent identifiers and ability to authenticate as an existing agent with the GoCD server. This issue is fixed in GoCD version 21.1.0. There are currently no known workarounds.
Affected products
- gocd: before 21.1.0 — fixed in 21.1.0
How to fix
Upgrade to a fixed version: gocd 21.1.0. Check the vendor advisory for mitigations.
References
- https://github.com/gocd/gocd/pull/8877
- https://github.com/gocd/gocd/security/advisories/GHSA-4fp5-33jh-hgcq
- https://www.gocd.org/releases/#21-1-0
- https://github.com/gocd/gocd/pull/8877
- https://github.com/gocd/gocd/security/advisories/GHSA-4fp5-33jh-hgcq
- https://www.gocd.org/releases/#21-1-0
Get alerted when CVE-2022-39310 or the next vulnerability affects your stack