CVE-2024-8502CWE-502

Remote Code Execution via Deserialization in modelscope/agentscope

Critical · published March 20, 2025

CVSS v3.0
9.8
EPSS
2%
Percentile
78.9
In the wild
Unconfirmed
What it is

🚨 A deserialization flaw in modelscope/agentscope v0.0.6a3 can turn your server into a puppet with a single malicious payload! 🔥 Think of it like a restaurant that accepts any recipe without checking its validity. If someone hands over a recipe containing a hidden ingredient that poisons the diners, the restaurant is in big trouble! An attacker could exploit this vulnerability to run arbitrary commands on your server, potentially taking complete control. This means they could access sensitive data, alter configurations, or even wipe everything clean — truly a nightmare scenario!

Put simply

Think of it like a restaurant that accepts any recipe without checking its validity. If someone hands over a recipe containing a hidden ingredient that poisons the diners, the restaurant is in big trouble! This critical remote code execution vulnerability stems from the RpcAgentServerLauncher class, where untrusted serialized input is processed by dill.loads, executing whatever commands are embedded in the payload.

What to do

An attacker could exploit this vulnerability to run arbitrary commands on your server, potentially taking complete control. This means they could access sensitive data, alter configurations, or even wipe everything clean — truly a nightmare scenario! Immediately patch to the latest version of modelscope/agentscope to close this vulnerability. Additionally, ensure that only trusted input is deserialized in your applications to mitigate future risks. Also, consider implementing input validation and sanitization best practices! You've got this! Follow these steps and you'll fortify your defenses in no time! 🛡️

The record
Technical detail
CVSS v3.0
9.8 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01844 · 78.9th percentile
Weakness
CWE-502 · Deserialization of Untrusted Data
Published
2025-03-20T10:09Z
EPSS history
Timeline
  • 20 MAR 10:09Z
    Remote Code Execution via Deserialization in modelscope/agentscope
    cvelistv5