CVE-2024-8502
JSON

9.8critical

Remote Code Execution via Deserialization in modelscope/agentscope

Severity
9.8critical CVSS:3.0 by @huntr_ai
Exploit likelihood
1.84% (higher than 79% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
@huntr_ai
Also known as
GHSA-9w5h-67gf-xvv8PYSEC-2026-253

Description

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.

Affected

Product or packageVersionsReported by
modelscope modelscope/agentscopefrom unspecified up to latestCVE List
agentscope (PyPI)up to 0.0.6a3GitHub Advisory Database, PyPA Advisory Database

All scores

@huntr_ai9.8critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory Database9.8critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-502

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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.

NVD (es)

Una vulnerabilidad en la clase RpcAgentServerLauncher de modelscope/agentscope v0.0.6a3 permite la ejecución remota de código (RCE) mediante la deserialización de datos no confiables mediante la librería dill. El problema se produce en el método AgentServerServicer.create_agent, donde la entrada serializada se deserializa mediante dill.loads, lo que permite a un atacante ejecutar comandos arbitrarios en el servidor.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-8502 changed 2025-03-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-9w5h-67gf-xvv8 changed 2026-10-26CC-BY-4.0
NVDCVE-2024-8502 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-253 changed 2026-07-01CC-BY-4.0