CVE-2022-39311CWE-502

Compromised agents may be able to execute remote code on GoCD Server

Critical · published October 14, 2022

CVSS v3.1
9.1
EPSS
2%
Percentile
82.1
In the wild
Unconfirmed
What it is

🚨 A malicious agent could wreak havoc with just a single connection! An attacker can exploit GoCD versions before 21.1.0 to run arbitrary code on the server—think of it as a sneaky pizza delivery guy who’s not just delivering your order but also taking over your kitchen! 🔥 Imagine a restaurant where the delivery driver not only brings in food but also has the keys to the pantry. If that driver turns rogue, they could throw out your best recipes or even change the menu without anyone knowing! If exploited, this vulnerability could allow an attacker to run any code on your GoCD server, potentially compromising the entire continuous delivery pipeline. This could mean unauthorized access to sensitive data, alteration of build processes, or worse—complete control over your deployment environment. The consequences can be absolutely devastating!

Put simply

Imagine a restaurant where the delivery driver not only brings in food but also has the keys to the pantry. If that driver turns rogue, they could throw out your best recipes or even change the menu without anyone knowing! This vulnerability arises from the Spring RemoteInvocation endpoint in GoCD, which improperly handles deserialization of arbitrary Java objects. An attacker with agent-level authentication can exploit this flaw to execute arbitrary code on the server, leading to full remote code execution.

What to do

If exploited, this vulnerability could allow an attacker to run any code on your GoCD server, potentially compromising the entire continuous delivery pipeline. This could mean unauthorized access to sensitive data, alteration of build processes, or worse—complete control over your deployment environment. The consequences can be absolutely devastating! To protect your CI/CD environment, immediately upgrade GoCD to version 21.1.0 or later. Regularly audit agent configurations and network communications to ensure they remain secure. Remember, there are no workarounds, so the upgrade is essential! This is fixable! Stay proactive and get this patched up quickly. You've got this! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.02165 · 82.1th percentile
Weakness
CWE-502 · Deserialization of Untrusted Data
Published
2022-10-14T00:00Z
EPSS history
Timeline
  • 14 OCT 00:00Z
    Compromised agents may be able to execute remote code on GoCD Server
    cvelistv5