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

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

Critical View original

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).

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

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.

More from agentscope

View all

The newest disclosed reports for this program.

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.