CVE-2021-25924

Source
https://cve.org/CVERecord?id=CVE-2021-25924
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-25924.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-25924
Published
2021-04-01T18:15:12Z
Modified
2026-07-09T00:13:04Z
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 post_backup_script field.

References

Affected packages

Git / github.com/gocd/gocd

Affected ranges

Type
GIT
Repo
https://github.com/gocd/gocd
Events
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:thoughtworks:gocd:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "19.6.0"
        },
        {
            "fixed":  "21.2.0"
        }
    ],
    "source":  [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

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

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-25924.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "321407077403969273082490796812356271858",
            "length":  413
        },
        "id":  "CVE-2021-25924-24fdfdbd",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "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,
        "digest":  {
            "line_hashes":  [
                "290456271028648574292916738462855074058",
                "128884651754586473902382283956016558467",
                "117628666451766356497316226923840181200"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2021-25924-76b9a835",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "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"
        }
    }
]
vanir_signatures_modified
"2026-07-09T00:13:04Z"