# CVE-2022-39311: Compromised agents may be able to execute remote code on GoCD Server

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.22%, higher than 83% of CVEs (2026-12-01)
- Published: 2022-10-14T00:00:00.000Z
- Modified: 2026-06-17T04:58:07.260Z
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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 are vulnerable to remote code execution on the server from a malicious or compromised agent. The Spring RemoteInvocation endpoint exposed agent communication and allowed deserialization of arbitrary java objects, as well as subsequent remote code execution. Exploitation requires agent-level authentication, thus an attacker would need to either compromise an existing agent, its network communication or register a new agent to practically exploit this vulnerability. This issue is fixed in GoCD version 21.1.0. There are currently no known workarounds.

(As written by CVE List.)

## Affected

- gocd gocd: < 21.1.0
- thoughtworks gocd: before 21.1.0

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/gocd/gocd/security/advisories/GHSA-2hjh-3p3p-8hcm> (patch, release-notes, third-party-advisory)
- <https://github.com/gocd/gocd/commit/7b88b70d6f7f429562d5cab49a80ea856e34cdc8> (patch, third-party-advisory)
- <https://www.gocd.org/releases/#21-1-0> (release-notes, vendor-advisory)

## Sources

- CVE List: [CVE-2022-39311](https://www.cve.org/CVERecord?id=CVE-2022-39311), CVE Terms of Use, modified 2025-04-23
- NVD: [CVE-2022-39311](https://nvd.nist.gov/vuln/detail/CVE-2022-39311), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-39311 · Whole record: https://cve.day/CVE-2022-39311.json · Rebuilt by cve.day 2026-11-25T22:58:15.737Z
