---
id: CVE-2024-8502
aliases:
  - GHSA-9w5h-67gf-xvv8
  - PYSEC-2026-253
title: AgentScope Deserialization Vulnerability
summary: AgentScope Deserialization Vulnerability
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
vendor: agentscope
product: agentscope
ecosystem: pip
affected:
  - agentscope <= 0.0.6a3
published: '2025-03-20'
updated: '2026-10-26'
sourceUpdated: '2026-10-26T21:15:03.672858905Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-9w5h-67gf-xvv8'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-8502'
  - url: 'https://github.com/modelscope/agentscope'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/agentscope/PYSEC-2026-253.yaml
  - url: 'https://huntr.com/bounties/7a42da2a-2ae5-442d-aff9-c9a3b47870eb'
  - url: 'https://pypi.org/project/agentscope'
  - url: 'https://github.com/advisories/GHSA-9w5h-67gf-xvv8'
tags:
  - osv
  - pip
  - ghsa
epss: 0.01844
epssPercentile: 0.78912
cwe:
  - CWE-502
ingestedAt: '2026-10-27T16:11:58.784Z'
---

## Overview

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 packages

- `agentscope <= 0.0.6a3`

## Remediation

Refer to the advisory for the patched release.
