{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:thoughtworks:gocd:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "21.3.0"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4c4bb4780eb0d3fc4cacfc4cfcc0b07e2eaf0595"
            },
            {
              "fixed": "2b77b533abcbb79c8fc758dec9984305dc1ade42"
            },
            {
              "fixed": "6fa9fb7a7c91e760f1adc2593acdd50f2d78676b"
            }
          ],
          "repo": "https://github.com/gocd/gocd",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {},
  "details": "An issue was discovered in ThoughtWorks GoCD before 21.3.0. An attacker with privileges to create a new pipeline on a GoCD server can abuse a command-line injection in the Git URL \"Test Connection\" feature to execute arbitrary code.",
  "id": "CVE-2021-43286",
  "modified": "2026-07-08T05:38:09.819935241Z",
  "published": "2022-04-14T13:15:11.417Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://www.gocd.org/releases/#21-3-0"
    },
    {
      "type": "FIX",
      "url": "https://blog.sonarsource.com/gocd-vulnerability-chain"
    },
    {
      "type": "FIX",
      "url": "https://github.com/gocd/gocd/commit/2b77b533abcbb79c8fc758dec9984305dc1ade42"
    },
    {
      "type": "FIX",
      "url": "https://github.com/gocd/gocd/commit/6fa9fb7a7c91e760f1adc2593acdd50f2d78676b"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}