---
id: CVE-2026-6603
aliases:
  - GHSA-cr24-fv3h-8cjm
  - PYSEC-2026-2331
title: AgentScope Vulnerable to Remote Code Injection
summary: AgentScope Vulnerable to Remote Code Injection
severity: high
cvss: 7.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L'
vendor: agentscope
product: agentscope
ecosystem: pip
affected:
  - agentscope <= 1.0.18
published: '2026-04-20'
updated: '2026-07-13'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-cr24-fv3h-8cjm'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-6603'
  - url: 'https://gist.github.com/YLChen-007/c084d69aaeda6729f3988603f2b0ce6e'
  - url: 'https://github.com/agentscope-ai/agentscope'
  - url: 'https://vuldb.com/submit/792223'
  - url: 'https://vuldb.com/vuln/358238'
  - url: 'https://vuldb.com/vuln/358238/cti'
tags:
  - osv
  - pip
epss: 0.00516
epssPercentile: 0.41487
ingestedAt: '2026-07-13T18:57:56.796Z'
---

## Overview

A vulnerability was determined in modelscope agentscope up to 1.0.18. Affected by this vulnerability is the function execute_python_code/execute_shell_command of the file src/AgentScope/tool/_coding/_python.py. This manipulation causes code injection. The attack is possible to be carried out remotely. The exploit has been publicly disclosed and may be utilized. The vendor was contacted early about this disclosure but did not respond in any way.

## Affected packages

- `agentscope <= 1.0.18`

## Remediation

Refer to the advisory for the patched release.
