id: PYSEC-2026-2331 published: "2026-07-13T15:02:51.724742Z" modified: "2026-07-13T16:03:11.502087Z" aliases: - CVE-2026-6603 - GHSA-cr24-fv3h-8cjm summary: AgentScope Vulnerable to Remote Code Injection details: 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: - package: name: agentscope ecosystem: PyPI purl: pkg:pypi/agentscope ranges: - type: ECOSYSTEM events: - introduced: "0" - last_affected: 1.0.18 versions: - 0.0.1 - 0.0.2 - 0.0.3 - 0.0.4 - 0.0.5 - 0.0.5a1 - 0.0.6a1 - 0.0.6a2 - 0.1.0 - 0.1.1 - 0.1.3 - 0.1.3.dev0 - 0.1.4 - 0.1.5 - 0.1.5.dev0 - 0.1.6 - 1.0.0 - 1.0.1 - 1.0.10 - 1.0.11 - 1.0.12 - 1.0.13 - 1.0.14 - 1.0.15 - 1.0.16 - 1.0.16.dev0 - 1.0.17 - 1.0.18 - 1.0.2 - 1.0.3 - 1.0.4 - 1.0.5 - 1.0.6 - 1.0.7 - 1.0.8 - 1.0.9 - 1.0.9.dev0 references: - type: ADVISORY url: https://nvd.nist.gov/vuln/detail/CVE-2026-6603 - type: WEB url: https://gist.github.com/YLChen-007/c084d69aaeda6729f3988603f2b0ce6e - type: PACKAGE url: https://github.com/agentscope-ai/agentscope - type: WEB url: https://vuldb.com/submit/792223 - type: WEB url: https://vuldb.com/vuln/358238 - type: WEB url: https://vuldb.com/vuln/358238/cti - type: PACKAGE url: https://pypi.org/project/agentscope - type: ADVISORY url: https://github.com/advisories/GHSA-cr24-fv3h-8cjm severity: - type: CVSS_V3 score: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L - type: CVSS_V4 score: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P