Skip to main content

Modelscope CVE-2026-6603

| EUVDEUVD-2026-23770 MEDIUM
Code Injection (CWE-94)
2026-04-20 VulDB GHSA-cr24-fv3h-8cjm
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker identifies accessible AgentScope service
  2. Delivery
    Crafts request with injected Python or shell code
  3. Exploit
    Sends request to execute_python_code or execute_shell_command endpoint
  4. Execution
    Vulnerable function executes injected code without sanitization
  5. Persist
    Arbitrary code executes with AgentScope process privileges
  6. Impact
    Attacker 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

agentscope 1.0.10
agentscope 1.0.15
agentscope 1.0.5
agentscope 1.0.18
agentscope 1.0.7
agentscope 1.0.13
agentscope 1.0.0
agentscope 1.0.1
agentscope 1.0.12
agentscope 1.0.17
agentscope 1.0.11
agentscope 1.0.8
agentscope 1.0.4
agentscope 1.0.3
agentscope 1.0.16
agentscope 1.0.14
agentscope 1.0.9
agentscope 1.0.2
agentscope 1.0.6

Affected Packages

pypi agentscope no fix

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

Vendor (VulDB) PRIMARY 5.5 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

5
CVSS changed
Apr 29, 2026 - 01:12 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
PoC Detected
Apr 29, 2026 - 01:00 vuln.today
Public exploit code
Severity Changed
Apr 20, 2026 - 05:22 NVD
HIGH MEDIUM
CVSS changed
Apr 20, 2026 - 05:22 NVD
7.3 (HIGH) 6.9 (MEDIUM)
CVE Published
Apr 20, 2026 - 04:00 nvd
MEDIUM 5.5

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Exploit
POC
Public exploit code exists
Social Media
4
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

CVE-2024-48050 CRITICAL POC
9.8 Nov 04

In agentscope <=v0.0.4, the file agentscope\web\workstation\workflow_utils.py has the function is_callable_expression. R

CVE-2024-8537 CRITICAL POC
9.1 Mar 20

A path traversal vulnerability exists in the modelscope/agentscope application, affecting all versions. Rated critical s

CVE-2024-8551 CRITICAL POC
9.1 Mar 20

A path traversal vulnerability exists in the save-workflow and load-workflow functionality of modelscope/agentscope vers

CVE-2024-8501 HIGH POC
8.8 Mar 20

An arbitrary file download vulnerability exists in the rpc_agent_client component of modelscope/agentscope version v0.0.

CVE-2024-8524 HIGH POC
7.5 Mar 20

A directory traversal vulnerability exists in modelscope/agentscope version 0.0.4. Rated high severity (CVSS 7.5), this

CVE-2024-8438 HIGH POC
7.5 Mar 20

A path traversal vulnerability exists in modelscope/agentscope version v.0.0.4. Rated high severity (CVSS 7.5), this vul

CVE-2026-6606 MEDIUM POC
5.5 Apr 20

Modelscope AgentScope versions up to 1.0.18 contain a server-side request forgery (SSRF) vulnerability in the _process_a

CVE-2026-6605 MEDIUM POC
5.5 Apr 20

Server-side request forgery in ModelScope AgentScope up to version 1.0.18 allows remote unauthenticated attackers to man

CVE-2026-6604 MEDIUM POC
5.5 Apr 20

Server-side request forgery (SSRF) in ModelScope AgentScope up to version 1.0.18 allows remote unauthenticated attackers

CVE-2026-84202 HIGH
8.7 Sep 01

Unsafe PyYAML deserialization in ModelScope through v1.40.0 enables remote code execution when users load model configur

CVE-2026-85686 HIGH
8.7 Sep 04

Server-side request forgery in ms-swift 4.5.2 allows unauthenticated remote attackers to weaponize the server's multimod

CVE-2026-10801 LOW POC
1.1 Jun 04

Cache key collision in modelscope ms-swift up to 4.2.0 allows a local, low-privileged attacker to cause PIL image integr

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy