CVE-2022-39311 Compromised agents may be able to execute remote code on GoCD Server
A malicious or compromised agent can execute remote code on the GoCD server via unsafe deserialization in the Spring RemoteInvocation endpoint.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2022-39311?
CVE-2022-39311 is a critical unsafe deserialization vulnerability in gocd, published on 14 Oct 2022. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
GoCD is a continuous delivery server. GoCD helps you automate and streamline the build-test-release cycle for continuous delivery of your product. GoCD versions prior to 21.1.0 are vulnerable to remote code execution on the server from a malicious or compromised agent. The Spring RemoteInvocation endpoint exposed agent communication and allowed deserialization of arbitrary java objects, as well as subsequent remote code execution. Exploitation requires agent-level authentication, thus an attacker would need to either compromise an existing agent, its network communication or register a new agent to practically exploit this vulnerability. This issue is fixed in GoCD version 21.1.0. There are currently no known workarounds.
Weakness: CWE-502
Which versions are affected by CVE-2022-39311?
It affects 1 product.
Products include Thoughtworks Gocd.
How do I fix CVE-2022-39311?
No fix has been published for CVE-2022-39311 yet. Limit exposure of the affected software until one is available.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2022-39311 being exploited?
There is no known exploitation of CVE-2022-39311 in the wild and no public exploit code.
Other vulnerabilities in gocd
Sources
Also known as GHSA-2hjh-3p3p-8hcm.