CVE-2024-56321
GoCD Server vulnerability analysis and mitigation

Overview

GoCD is a continuous delivery server. A vulnerability was discovered in versions 18.9.0 through 24.4.0 (inclusive) that allows GoCD administrators 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 (GitHub Advisory).

Technical details

The vulnerability stems from insufficient validation of post-backup script locations, allowing execution of scripts from sensitive locations on the GoCD server. The issue has been assigned a CVSS v3.1 base score of 3.8 (LOW) with vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N. The vulnerability is classified under CWE-36 (Absolute Path Traversal) and CWE-20 (Improper Input Validation) (GitHub Advisory).

Impact

The impact of this vulnerability is considered limited in practice, as in most configurations a user who can log into the GoCD UI as an admin typically already has host administration permissions for the host/container that GoCD runs on to manage artifact storage and other service-level configurations. Additionally, GoCD admins already have the ability to configure and schedule pipeline tasks on all available GoCD agents, providing similar task execution capabilities (NVD).

Mitigation and workarounds

The vulnerability has been fixed in GoCD version 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 for earlier versions (GoCD Release Notes).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management