Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker identifies accessible AgentScope service
-
DeliveryCrafts request with injected Python or shell code
-
ExploitSends request to execute_python_code or execute_shell_command endpoint
-
ExecutionVulnerable function executes injected code without sanitization
-
PersistArbitrary code executes with AgentScope process privileges
-
ImpactAttacker achieves code execution and post-exploitation goals
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The vulnerability can be exploited against any network-accessible AgentScope instance running version 1.0.18 or earlier where the execute_python_code or execute_shell_command functions are accessible to incoming requests. No special configuration, authentication, or user interaction is required; default deployments are vulnerable if they expose the agent execution endpoints to untrusted networks. Exploitation is limited only by network accessibility - if AgentScope is deployed on an isolated internal network with restricted inbound access, exploitation is hindered by network-layer controls rather than the code itself. The vulnerability does not require any specific platform, though the impact (ability to execute arbitrary code) depends on the privileges and environment (OS, filesystem, network access) of the AgentScope process. |
| Impact | This vulnerability presents HIGH real-world risk despite the CVSS 4.0 score of 6.9. The CVSS vector (AV:N/AC:L/PR:N/UI:N) confirms network-accessible, unauthenticated, no-complexity exploitation against default configurations. The E:P tag in the vector indicates proof-of-concept exploitation is available. Most critically, this is a code injection vulnerability (CWE-94) with remote code execution impact, which typically requires only that the vulnerable service is accessible and accepting input - a realistic scenario for agent frameworks deployed in automation or multi-user environments. The CVSS score may be artificially limited due to conservative impact scoring (VC:L/VI:L/VA:L denotes limited confidentiality, integrity, and availability impact in the CVSS 4.0 scope), but actual impact depends on the execution context: if AgentScope runs with elevated privileges or access to sensitive data, impact escalates significantly. The vendor's non-response to early disclosure and the public availability of exploit code removes any uncertainty about exploitability. This is a real priority that should be treated as critical for any production deployment of AgentScope. |
| Exploit ScenarioDerived | An attacker sends a crafted request to an accessible AgentScope instance containing malicious Python code or shell commands embedded in parameters intended for the execute_python_code or execute_shell_command functions. The vulnerable functions process the input without sanitization and execute the injected code, allowing the attacker to read files, install persistence mechanisms, pivot to internal systems, or exfiltrate data. The attack requires only network access and no authentication or user interaction, making it trivial to automate against any publicly or internally exposed AgentScope deployment. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 20, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Modelscope gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
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
Primary rating from Vendor (VulDB) · only source for this CVE.
CVSS VectorVendor: VulDB
Lifecycle Timeline
5DescriptionCVE.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.
Blast Radius
ecosystem impact- 7 pypi packages depend on agentscope (6 direct, 1 indirect)
Ecosystem-wide dependent count for version 1.0.18.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Modelscope
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
Unsafe PyYAML deserialization in ModelScope through v1.40.0 enables remote code execution when users load model configur
Server-side request forgery in ms-swift 4.5.2 allows unauthenticated remote attackers to weaponize the server's multimod
Cache key collision in modelscope ms-swift up to 4.2.0 allows a local, low-privileged attacker to cause PIL image integr
EUVD-2026-23770
GHSA-cr24-fv3h-8cjm
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB