Severity by source
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
8Blast Radius
ecosystem impact- 7 pypi packages depend on agentscope (6 direct, 1 indirect)
Ecosystem-wide dependent count for version 1.0.18.
DescriptionCVE.org
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.
AnalysisAI
Remote code execution in ModelScope AgentScope up to version 1.0.18 allows unauthenticated network attackers to inject and execute arbitrary Python code or shell commands through the execute_python_code and execute_shell_command functions in src/AgentScope/tool/_coding/_python.py. Publicly available exploit code exists, and the vendor has not responded to early disclosure notifications, leaving all versions up to 1.0.18 unpatched and actively exploitable.
Technical ContextAI
AgentScope is a multi-agent framework built on ModelScope. The vulnerability exists in the code execution utilities within the _coding module, which are designed to safely execute Python and shell commands as part of agent tool operations. The root cause is CWE-94 (Improper Control of Generation of Code), indicating that user-supplied input is not properly sanitized before being passed to Python code evaluation or shell command execution functions. The affected component processes code execution requests without adequate input validation or sandboxing, allowing attackers to inject arbitrary code that will be executed with the privileges of the AgentScope process. CPE indicates all versions of ModelScope AgentScope are affected, with known vulnerable versions through 1.0.18.
RemediationAI
No vendor-released patch identified at time of analysis; the vendor has not responded to disclosure and no patched version is publicly available. Organizations running AgentScope should immediately discontinue use of versions up to 1.0.18 until a security patch is released. If continuation is unavoidable, implement compensating controls: (1) restrict network access to AgentScope services using firewall rules - allow only trusted internal subnets to reach the agent execution endpoints, which trades off distributed deployment flexibility for containment; (2) disable or remove the execute_python_code and execute_shell_command tools from agent toolsets if they are not critical to operations, eliminating the attack surface entirely; (3) run AgentScope within a containerized environment (Docker/Kubernetes) with restrictive seccomp profiles and disabled system calls (e.g., exec, fork) to limit code execution impact, though this may break legitimate agent functionality. Monitor the official ModelScope repository (https://github.com/modelscope/agentscope) and VulDB (https://vuldb.com/vuln/358238) for patch availability. Vendors and users should contact ModelScope directly through GitHub issues or security contact if available.
More in Agentscope
View allIn agentscope <=v0.0.4, the file agentscope\web\workstation\workflow_utils.py has the function is_callable_expression. R
A path traversal vulnerability exists in the modelscope/agentscope application, affecting all versions. Rated critical s
A path traversal vulnerability exists in the save-workflow and load-workflow functionality of modelscope/agentscope vers
An arbitrary file download vulnerability exists in the rpc_agent_client component of modelscope/agentscope version v0.0.
A directory traversal vulnerability exists in modelscope/agentscope version 0.0.4. Rated high severity (CVSS 7.5), this
A path traversal vulnerability exists in modelscope/agentscope version v.0.0.4. Rated high severity (CVSS 7.5), this vul
Modelscope AgentScope versions up to 1.0.18 contain a server-side request forgery (SSRF) vulnerability in the _process_a
Server-side request forgery in ModelScope AgentScope up to version 1.0.18 allows remote unauthenticated attackers to man
Server-side request forgery (SSRF) in ModelScope AgentScope up to version 1.0.18 allows remote unauthenticated attackers
A stored cross-site scripting (XSS) vulnerability exists in modelscope/agentscope, as of the latest commit 21161fe on th
A Cross-Origin Resource Sharing (CORS) vulnerability exists in modelscope/agentscope version v0.0.4. Rated critical seve
A Local File Inclusion (LFI) vulnerability exists in the /load-workflow endpoint of modelscope/agentscope version v0.0.4
Same weakness CWE-94 – Code Injection
View allSame technique Code Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-23770
GHSA-cr24-fv3h-8cjm