# CVE-2024-8502: Remote Code Execution via Deserialization in modelscope/agentscope

- Severity: Critical 9.8 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.84%, higher than 79% of CVEs (2026-12-01)
- Published: 2025-03-20T10:09:38.825Z
- Modified: 2026-10-26T21:15:03.672Z
- Also known as: GHSA-9w5h-67gf-xvv8, PYSEC-2026-253
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: @huntr_ai

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

(As written by CVE List.)

## Affected

- modelscope modelscope/agentscope: from unspecified up to latest
- agentscope (PyPI): up to 0.0.6a3

## Every score

- @huntr_ai: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 9.8 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/7a42da2a-2ae5-442d-aff9-c9a3b47870eb> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-8502> (advisory)
- <https://github.com/modelscope/agentscope> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/agentscope/PYSEC-2026-253.yaml> (web)
- <https://pypi.org/project/agentscope> (package, web)
- <https://github.com/advisories/GHSA-9w5h-67gf-xvv8> (advisory)

## Sources

- CVE List: [CVE-2024-8502](https://www.cve.org/CVERecord?id=CVE-2024-8502), CVE Terms of Use, modified 2025-03-20
- GitHub Advisory Database: [GHSA-9w5h-67gf-xvv8](https://github.com/advisories/GHSA-9w5h-67gf-xvv8), CC-BY-4.0, modified 2026-10-26
- NVD: [CVE-2024-8502](https://nvd.nist.gov/vuln/detail/CVE-2024-8502), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-253](https://osv.dev/vulnerability/PYSEC-2026-253), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2024-8502 · Whole record: https://cve.day/CVE-2024-8502.json · Rebuilt by cve.day 2026-11-25T22:58:52.396Z
