# CVE-2024-8502: AgentScope Deserialization Vulnerability

Source: https://junglewise.ai/threats/cve-2024-8502-agentscope-deserialization-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-03-20  
License: CC BY 4.0 with a link back

CVE-2024-8502 · Severity: critical · CVSS 9.8 · Published 2025-03-20

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.

Technologies: [agentscope (PyPI)](https://junglewise.ai/threats/technologies/agentscope). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-8502 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-8502 being exploited in the wild.

**How severe is CVE-2024-8502?** Critical severity, with a CVSS score of 9.8, published 20 March 2025.

**Which products and versions are affected?** agentscope (PyPI) <= 0.0.6a3, ECOSYSTEM:introduced=0,last_affected=0.0.6a3.

**Is there a fix for CVE-2024-8502?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**Am I affected by CVE-2024-8502?** Check whether you run agentscope (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- agentscope (PyPI) <= 0.0.6a3, ECOSYSTEM:introduced=0,last_affected=0.0.6a3

## Identifiers

- CVE-2024-8502
- GHSA-9w5h-67gf-xvv8
- PYSEC-2026-253

## Related threats

- [PYSEC-2026-1076 - AgentScope stored cross-site scripting (XSS) vulnerability](https://junglewise.ai/threats/cve-2024-8556-agentscope-stored-cross-site-scripting-xss-vulnerability)
- [AgentScope vulnerable to Server-Side Request Forgery](https://junglewise.ai/threats/cve-2026-6606-agentscope-vulnerable-to-server-side-request-forgery)
- [AgentScope vulnerable to Server-Side Request Forgery](https://junglewise.ai/threats/cve-2026-6605-agentscope-vulnerable-to-server-side-request-forgery)
- [AgentScope vulnerable to Server-Side Request Forgery](https://junglewise.ai/threats/cve-2026-6604-agentscope-vulnerable-to-server-side-request-forgery)
- [PYSEC-2026-2331 - AgentScope Vulnerable to Remote Code Injection](https://junglewise.ai/threats/cve-2026-6603-agentscope-vulnerable-to-remote-code-injection)
