CVE-2024-56321
GoCD can allow malicious GoCD admins to abuse backup configuration to gain additional host access
Mitigation
- Upgrade gocd to 24.5.0 or later.
Who should check
- Anyone running gocd >= 18.9.0, < 24.5.0
Vulnerability facts
- Affected
- gocd >= 18.9.0, < 24.5.0
- Fixed in
- gocd 24.5.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 3.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: High
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: None
- EPSS
- 0.90% chance of exploitation in 30 days (percentile 58, 2026-11-26)
- CWE
- CWE-20, CWE-36
- Modified
Description
GoCD is a continuous deliver server. GoCD versions 18.9.0 through 24.4.0 (inclusive) can allow GoCD admins to abuse the backup configuration "post-backup script" feature to potentially execute arbitrary scripts on the hosting server or container as GoCD's user, rather than pre-configured scripts. In practice the impact of this vulnerability is limited, as in most configurations a user who can log into the GoCD UI as an admin also has host administration permissions for the host/container that GoCD runs on, in order to manage artifact storage and other service-level configuration options. Additionally, since a GoCD admin has ability to configure and schedule pipelines tasks on all GoCD agents available to the server, the fundamental functionality of GoCD allows co-ordinated task execution similar to that of post-backup-scripts. However in restricted environments where the host administration is separated from the role of a GoCD admin, this may be unexpected. The issue is fixed in GoCD 24.5.0. Post-backup scripts can no longer be executed from within certain sensitive locations on the GoCD server. No known workarounds are available.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| gocd | >= 18.9.0, < 24.5.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-56321. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-56321.md Affected: gocd >= 18.9.0, < 24.5.0 Fixed in: gocd 24.5.0 Steps: 1. Search this machine and project for gocd: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2024-56321 being exploited?
There is no confirmed exploitation: CVE-2024-56321 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.90% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-56321?
Low: CVSS 3.8 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2024-56321?
gocd >= 18.9.0, < 24.5.0.
Is there a fix for CVE-2024-56321?
Yes. Fixed in gocd 24.5.0. Upgrade gocd to 24.5.0 or later.
How do I check if I'm affected by CVE-2024-56321?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.