High
Security advisory
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 post_backup_script field.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-25924
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:42 UTC · Revision 1
Source evidence
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 post_backup_script field.
osv:CVE-2021-25924
Complete source record
{
"id": "cc30946ca11829521afcda8a580e109b335fbb69066eef1e2caa150dd41c4654",
"url": "https://osv.dev/vulnerability/CVE-2021-25924",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-25924",
"summary": "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 post_backup_script field.",
"evidence": "osv:CVE-2021-25924",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2021-25924",
"aliases": [
"CVE-2021-25924"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/gocd/gocd",
"type": "GIT",
"events": [
{
"introduced": "4b674c10941b6c27d7ec2a28dd946518d9211b7a"
},
{
"fixed": "16e1ac6956cd5177a99dc3fe33503661881c354f"
},
{
"fixed": "7d0baab0d361c377af84994f95ba76c280048548"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:thoughtworks:gocd:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "19.6.0"
},
{
"fixed": "21.2.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "7d0baab0d361c377af84994f95ba76c280048548"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"21.1.0",
"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"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-25924.json",
"vanir_signatures": [
{
"id": "CVE-2021-25924-24fdfdbd",
"digest": {
"length": 413,
"function_hash": "321407077403969273082490796812356271858"
},
"source": "https://github.com/gocd/gocd/commit/7d0baab0d361c377af84994f95ba76c280048548",
"target": {
"file": "api/api-backup-config-v1/src/main/java/com/thoughtworks/go/apiv1/backupconfig/BackupConfigControllerV1.java",
"function": "setupRoutes"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2021-25924-76b9a835",
"digest": {
"threshold": 0.9,
"line_hashes": [
"290456271028648574292916738462855074058",
"128884651754586473902382283956016558467",
"117628666451766356497316226923840181200"
]
},
"source": "https://github.com/gocd/gocd/commit/7d0baab0d361c377af84994f95ba76c280048548",
"target": {
"file": "api/api-backup-config-v1/src/main/java/com/thoughtworks/go/apiv1/backupconfig/BackupConfigControllerV1.java"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T14:19:32Z"
}
}
],
"modified": "2026-10-20T14:19:32.606689424Z",
"provider": "osv",
"references": [
"https://www.whitesourcesoftware.com/vulnerability-database/CVE-2021-25924%2C",
"https://github.com/gocd/gocd/commit/7d0baab0d361c377af84994f95ba76c280048548"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-25924",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 388808,
"published_at": "2021-04-01T18:15:12.997+00:00"
}