Vulnerability · Published Apr 20, 2026 · Assigned by VulDB
CVE-2026-6603modelscope agentscope _python.py execute_shell_command code injection
High 7.3
In plain English
A high-severity code injection in agentscope from modelscope. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 24% of all known vulnerabilities).
Official description
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 & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | agentscope | no fix listed | GHSA-cr24-fv3h-8cjm |
| PyPI | agentscope | no fix listed | PYSEC-2026-2331 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| modelscope | agentscope | 1.0.01.0.11.0.21.0.31.0.41.0.51.0.61.0.7 |
Weakness: CWE-94, CWE-74 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R
References
- VDB-358238 | modelscope agentscope _python.py execute_shell_command code injection vdb-entry, technical-description
- VDB-358238 | CTI Indicators (IOB, IOC, TTP, IOA) signature, permissions-required
- Submit #792223 | AgentScope <= 1.0.18 Code Injection (CWE-94) third-party-advisory
- https://gist.github.com/YLChen-007/c084d69aaeda6729f3988603f2b0ce6e exploit