Skip to content
RCE Disclosed report Intermediate CVE-2024-9053

vLLM allows Remote Code Execution by Pickle Deserialization via AsyncEngineRPCServer() RPC server entrypoints

The vLLM RPC server deserialises incoming messages with cloudpickle without sanitisation, allowing an attacker to execute arbitrary code by sending malicious pickle data.

vllm

Originally disclosed on huntr

Critical View original

vllm-project vllm version 0.6.0 contains a vulnerability in the AsyncEngineRPCServer() RPC server entrypoints. The core functionality run_server_loop() calls the function _make_handler_coro(), which directly uses cloudpickle.loads() on received messages without any sanitization. This can result in remote code execution by deserializing malicious pickle data.

From the GitHub Advisory Database (GHSA-cj47-qj6g-x7r4, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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 server calls cloudpickle.loads() on untrusted network input without any validation or safe deserialisation.

Impact

An attacker who can reach the RPC server could execute arbitrary code on the host running vLLM.

What the attacker needed

Network access to the RPC server

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.

Pickle is a way Python saves and loads objects, but loading untrusted pickle data can run code. Here, the server loads messages from the network without checking them, so an attacker who can send a message can make the server run their code.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.