Skip to content
Heist/ feed
Back to feed
Medium

Malicious agent may be able to impersonate another agent in GoCD

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-39310
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 04:48 UTC · Revision 1

Source evidence

Malicious agent may be able to impersonate another agent in GoCD

core-osv · Original source

Published 14 Oct 2022, 00:00 UTC

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.

osv:CVE-2022-39310
Complete source record
{
  "id": "5e3b9b807c076174db34d64404a335fa72e255335a230b2e6dd47f68a2cd009f",
  "url": "https://osv.dev/vulnerability/CVE-2022-39310",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Malicious agent may be able to impersonate another agent in GoCD",
    "summary": "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.",
    "evidence": "osv:CVE-2022-39310",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-39310",
      "aliases": [
        "CVE-2022-39310",
        "GHSA-4fp5-33jh-hgcq"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gocd/gocd",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5a4959c7c4ede49165ec961b0219126cd5aa9e52"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "21.1.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "cpe": "cpe:2.3:a:thoughtworks:gocd:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "21.1.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "20.10.0",
            "20.9.0",
            "20.8.0",
            "20.7.0",
            "20.6.0",
            "20.5.0",
            "20.4.0",
            "20.3.0",
            "20.2.0",
            "20.1.0",
            "19.12.0",
            "19.11.0",
            "19.10.0",
            "19.9.0",
            "19.8.0",
            "19.7.0",
            "19.6.0",
            "19.5.0",
            "19.4.0",
            "19.3.0",
            "19.2.0",
            "19.1.0",
            "18.12.0",
            "18.11.0",
            "18.10.0",
            "18.9.0",
            "18.8.0",
            "18.7.0",
            "18.6.0",
            "18.5.0",
            "18.4.0",
            "18.3.0",
            "18.2.0",
            "18.1.0",
            "17.12.0",
            "17.11.0",
            "17.10.0",
            "17.9.0",
            "17.8.0",
            "17.7.0",
            "17.6.0",
            "17.5.0",
            "17.4.0",
            "17.3.0",
            "17.2.0",
            "17.1.0",
            "16.12.0",
            "16.11.0",
            "16.10.0",
            "16.9.0",
            "16.8.0",
            "16.7.0",
            "16.6.0",
            "16.5.0",
            "16.4.0",
            "16.3.0",
            "16.2.0",
            "16.1.0",
            "15.3.0",
            "15.2.0",
            "15.1.0",
            "14.4.0",
            "14.3.0",
            "14.2.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-39310.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:33.578964098Z",
      "provider": "osv",
      "references": [
        "https://www.gocd.org/releases/#21-1-0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39310.json",
        "https://github.com/gocd/gocd/security/advisories/GHSA-4fp5-33jh-hgcq",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-39310",
        "https://github.com/gocd/gocd/pull/8877"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-284"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/39xxx/CVE-2022-39310.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-39310",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 500386,
  "published_at": "2022-10-14T00:00:00+00:00"
}