Horovod Vulnerable to Command Injection
Horovod's ElasticRendezvousHandler deserialises base64-encoded data using cloudpickle without authentication, allowing an attacker to send a malicious pickle object via a PUT request and achieve remote code execution.
horovod
Originally disclosed on huntr
Horovod versions up to and including v0.28.1 are vulnerable to unauthenticated remote code execution. The vulnerability is due to improper handling of base64-encoded data in the ElasticRendezvousHandler, a subclass of KVStoreHandler. Specifically, the _put_value method in ElasticRendezvousHandler calls codec.loads_base64(value), which eventually invokes cloudpickle.loads(decoded). This allows an attacker to send a malicious pickle object via a PUT request, leading to arbitrary code execution on the server.
From the GitHub Advisory Database (GHSA-mrhh-3ggq-23p2, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The ElasticRendezvousHandler's _put_value method deserialises untrusted base64-encoded data with cloudpickle.loads without authentication or validation.
Impact
An unauthenticated attacker could execute arbitrary code on the server.
What the attacker needed
Network access to the Horovod service
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Horovod is a tool for distributed machine learning. Its rendezvous handler accepts data over the network and turns it back into Python objects without checking who sent it. An attacker can send a specially crafted object that runs their code on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.