CVE-2026-6603 Details
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.
A code injection vulnerability has been identified in Modelscope Agentscope versions through 1.0.18. The issue arises in the 'execute_python_code' and 'execute_shell_command' functions within the file 'src/AgentScope/tool/_coding/_python.py'. This vulnerability allows for remote code execution, as the application fails to properly sandbox or isolate the execution environment. Instead, it directly passes arguments generated by the language model to subprocess execution, inheriting the full server environment, including sensitive information such as API keys and secrets.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 20, 2026CISA-ADP
Assessed Apr 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/YLChen-007/c084d69aaeda6729f3988603f2b0ce6e | [email protected] | ExploitTechnical Analysis |
| https://vuldb.com/submit/792223 | [email protected] | ExploitTechnical Description |
| https://vuldb.com/vuln/358238 | [email protected] | AdvisoryExploitPartial Content |
| https://vuldb.com/vuln/358238/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| modelscope agentscope | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Apr 20, 2026 | New CVE Received | [email protected] |
Volerion