{"id":"CVE-2024-56321","state":"PUBLISHED","title":"GoCD can allow malicious GoCD admins to abuse backup configuration to gain additional host access","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.","publishedAt":"2025-01-03T15:41:40.737Z","updatedAt":"2025-01-03T17:50:41.277Z","severity":{"score":3.8,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["gocd gocd"],"affected":[{"vendor":"gocd","product":"gocd","versions":[{"version":">= 18.9.0, < 24.5.0","status":"affected"}]}],"references":["https://github.com/gocd/gocd/security/advisories/GHSA-7jr3-gh3w-vjxq","https://github.com/gocd/gocd/commit/631f315d17fcb73f310eee6c881974c9b55ca9f0","https://github.com/gocd/gocd/releases/tag/24.5.0","https://www.gocd.org/releases/#24-5-0"],"weaknesses":["CWE-20","CWE-36"],"ingestedAt":"2026-10-29T20:08:12.933Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/56xxx/CVE-2024-56321.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-56321","state":"PUBLISHED","datePublished":"2025-01-03T15:41:40.737Z","dateUpdated":"2025-01-03T17:50:41.277Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-12-18T23:44:51.604Z"},"containers":{"cna":{"title":"GoCD can allow malicious GoCD admins to abuse backup configuration to gain additional host access","descriptions":[{"lang":"en","value":"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":[{"vendor":"gocd","product":"gocd","versions":[{"version":">= 18.9.0, < 24.5.0","status":"affected"}]}],"references":[{"url":"https://github.com/gocd/gocd/security/advisories/GHSA-7jr3-gh3w-vjxq","name":"https://github.com/gocd/gocd/security/advisories/GHSA-7jr3-gh3w-vjxq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gocd/gocd/commit/631f315d17fcb73f310eee6c881974c9b55ca9f0","name":"https://github.com/gocd/gocd/commit/631f315d17fcb73f310eee6c881974c9b55ca9f0","tags":["x_refsource_MISC"]},{"url":"https://github.com/gocd/gocd/releases/tag/24.5.0","name":"https://github.com/gocd/gocd/releases/tag/24.5.0","tags":["x_refsource_MISC"]},{"url":"https://www.gocd.org/releases/#24-5-0","name":"https://www.gocd.org/releases/#24-5-0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":3.8,"baseSeverity":"LOW","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","lang":"en","description":"CWE-20: Improper Input Validation","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-36","lang":"en","description":"CWE-36: Absolute Path Traversal","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2025-01-03T15:48:22.716Z"},"source":{"advisory":"GHSA-7jr3-gh3w-vjxq","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-01-03T17:49:54.699823Z","id":"CVE-2024-56321","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-01-03T17:50:41.277Z"}}]}}}