AgentScope Deserialization Vulnerability
The AgentServerServicer.create_agent method deserialises untrusted input with the dill library, allowing an attacker to execute arbitrary commands on the server. This enables remote code execution.
agentscope
Originally disclosed on huntr
A vulnerability in the RpcAgentServerLauncher class of modelscope/agentscope v0.0.6a3 allows for remote code execution (RCE) via deserialization of untrusted data using the dill library. The issue occurs in the AgentServerServicer.create_agent method, where serialized input is deserialized using dill.loads, enabling an attacker to execute arbitrary commands on the server.
From the GitHub Advisory Database (GHSA-9w5h-67gf-xvv8, 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
Likely the server deserialises untrusted input with dill.loads without validation or authentication.
Impact
An attacker could execute arbitrary commands on the server, leading to full remote code execution.
What the attacker needed
Access to the AgentServerServicer.create_agent method
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.
Deserialisation is when a program turns stored data back into objects. If that data comes from an untrusted source, an attacker can craft it so that the program runs their code. Here, the server used a library called dill to do this, so an attacker could run commands 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.