# CVE-2022-39309: GoCD server secret encryption/decryption key leaked to agents during material serialization

- Severity: Medium 4.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- 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): 1.06%, higher than 65% of CVEs (2026-12-01)
- Published: 2022-10-14T00:00:00.000Z
- Modified: 2026-06-17T04:58:07.027Z
- Weaknesses: CWE-200, CWE-499, CWE-668
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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 leak the symmetric key used to encrypt/decrypt any secure variables/secrets in GoCD configuration to authenticated agents. A malicious/compromised agent may then expose that key from memory, and potentially allow an attacker the ability to decrypt secrets intended for other agents/environments if they also are able to obtain access to encrypted configuration values from the GoCD server. 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 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://www.gocd.org/releases/#21-1-0> (release-notes, vendor-advisory)
- <https://github.com/gocd/gocd/security/advisories/GHSA-f9qg-xcxq-cgv9> (patch, release-notes, third-party-advisory)
- <https://github.com/gocd/gocd/commit/691b479f1310034992da141760e9c5d1f5b60e8a> (patch, third-party-advisory)
- <https://github.com/gocd/gocd/releases/tag/21.1.0> (release-notes, third-party-advisory)

## Sources

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

---

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