CVE-2021-25924

Source
https://cve.org/CVERecord?id=CVE-2021-25924
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-25924.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2021-25924
Published
2021-04-01T18:15:12.997Z
Modified
2026-03-13T01:54:36.645483Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

In GoCD, versions 19.6.0 to 21.1.0 are vulnerable to Cross-Site Request Forgery due to missing CSRF protection at the /go/api/config/backup endpoint. An attacker can trick a victim to click on a malicious link which could change backup configurations or execute system commands in the postbackupscript field.

References

Affected packages

Git / github.com/gocd/gocd

Affected ranges

Type
GIT
Repo
https://github.com/gocd/gocd
Events
Database specific
{
    "versions": [
        {
            "introduced": "19.6.0"
        },
        {
            "fixed": "21.2.0"
        }
    ]
}

Affected versions

19.*
19.10.0
19.11.0
19.12.0
19.6.0
19.7.0
19.8.0
19.9.0
20.*
20.1.0
20.10.0
20.2.0
20.3.0
20.4.0
20.5.0
20.6.0
20.7.0
20.8.0
20.9.0
21.*
21.1.0

Database specific

vanir_signatures
[
    {
        "signature_version": "v1",
        "target": {
            "function": "setupRoutes",
            "file": "api/api-backup-config-v1/src/main/java/com/thoughtworks/go/apiv1/backupconfig/BackupConfigControllerV1.java"
        },
        "digest": {
            "length": 413.0,
            "function_hash": "321407077403969273082490796812356271858"
        },
        "source": "https://github.com/gocd/gocd/commit/7d0baab0d361c377af84994f95ba76c280048548",
        "signature_type": "Function",
        "id": "CVE-2021-25924-24fdfdbd",
        "deprecated": false
    },
    {
        "signature_version": "v1",
        "target": {
            "file": "api/api-backup-config-v1/src/main/java/com/thoughtworks/go/apiv1/backupconfig/BackupConfigControllerV1.java"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "290456271028648574292916738462855074058",
                "128884651754586473902382283956016558467",
                "117628666451766356497316226923840181200"
            ]
        },
        "source": "https://github.com/gocd/gocd/commit/7d0baab0d361c377af84994f95ba76c280048548",
        "signature_type": "Line",
        "id": "CVE-2021-25924-76b9a835",
        "deprecated": false
    }
]
source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-25924.json"