Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessConnect to exposed RealtimeAgent WebSocket
-
DeliverySend prompt inducing execute_python_code call
-
ExploitTool call forwarded to Toolkit.call_tool_function
-
ExecutionArbitrary Python runs unsandboxed in service env
-
ImpactFull compromise of host environment
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 | Exploitation requires that the agentscope RealtimeAgent session is configured to expose execute_python_code as an available tool AND that the agent is reachable by the attacker over its WebSocket interface; on that path RealtimeAgent._acting forwards the model-produced tool call to Toolkit.call_tool_function with no approval prompt or sandbox/isolation boundary. The primary limiting factor is that the code-execution tool must be registered/enabled for the session - an instance that does not expose execute_python_code is not vulnerable via this path - and the WebSocket endpoint must be network-accessible to the attacker. Affected versions are agentscope 1.0.18 and 1.0.19. |
| Impact | The signals are mixed but lean toward genuine priority in affected deployments. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H = 9.8) describes remote, unauthenticated, low-complexity code execution with total impact, and SSVC corroborates this with Technical Impact: total and Automatable: yes. SSVC Exploitation status is 'poc' and a public exploit gist exists, so this is publicly available exploit code - NOT confirmed active exploitation (no CISA KEV listing). The EPSS score is low at 0.20% (9th percentile), which conflicts with the 9.8 CVSS; this gap is explained by the fact that exploitation is gated on a specific deployment choice - the RealtimeAgent session must expose execute_python_code as an available tool - so the broad-internet exploitation probability that EPSS models is genuinely low even though impact on an exposed instance is catastrophic. Net: a real priority for anyone running agentscope 1.0.18/1.0.19 with a WebSocket-exposed RealtimeAgent that offers code execution, but not an indiscriminate internet-wide threat. Note also that the CVSS vector reports PR:N while the description makes clear exploitation requires the operator to have enabled the code-execution tool - verify the deployed configuration before treating as unconditionally unauthenticated. |
| Exploit ScenarioDerived | An operator deploys an agentscope RealtimeAgent over WebSocket with execute_python_code registered as an available tool. A remote user connects and sends a prompt that steers the model into issuing a tool call to execute_python_code; RealtimeAgent._acting forwards it to Toolkit.call_tool_function, which runs the attacker-chosen Python in the service environment with no approval or isolation boundary. A public proof-of-concept exploit gist is available, and given AV:N/AC:L the interaction is simple to reproduce against an exposed instance. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 01, 2026
Remote code execution in AgentScope 1.0.18 and 1.0.19 allows remote attackers to execute arbitrary Python in the service environment: when a RealtimeAgent session has execute_python_code registered as an available tool, the agent's _acting path forwards a model-produced tool call straight to Toolkit.call_tool_function with no approval prompt and no sandbox boundary, so a remote WebSocket user who can reach the endpoint and steer the agent can obtain code execution with the service's privileges. Per the CVSS vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) no authentication is required, and the SSVC assessment records that publicly available exploit code exists (exploitation: poc), so the vulnerability is automatable with total technical impact; EPSS is low at 0.20% (9th percentile), indicating limited observed exploitation activity so far. Exploitation is conditional on the deployment exposing the execute_python_code tool in a RealtimeAgent session and on the WebSocket interface being network-reachable - instances that do not register that tool are not vulnerable via this path.
RemediationAI
No vendor-released patch is identified in the available data: the supplied references point to the upstream GitHub issue https://github.com/agentscope-ai/agentscope/issues/1563 and a public write-up https://gist.github.com/Ro1ME/c383f66d1fd6de40b6693f9b6cc181e7 rather than to a tagged fixed release, so remediation must initially be compensating controls, and operators should monitor the issue and the AgentScope release notes for a patched version and upgrade as soon as one is published. The most direct control is to stop exposing code execution through realtime sessions: remove execute_python_code from the Toolkit registered on any RealtimeAgent session, or gate its registration behind an explicit allowlist, at the cost of disabling legitimate agent code-execution features for those sessions. Second, restrict the WebSocket endpoint that fronts RealtimeAgent to trusted networks or authenticated reverse proxies and require client authentication at the proxy if it is not already enforced, which reduces the attacker population but does not remove the underlying missing approval boundary and can break legitimate remote clients. Third, run the AgentScope service in a hardened container or VM with a read-only filesystem, dropped capabilities, an egress-restricted network namespace, and non-privileged service accounts so that any code that does reach execute_python_code is contained; this limits blast radius without restoring the intended confirmation semantics and may interfere with agents that legitimately need outbound network or filesystem access. Fourth, where the toolkit supports it, enable the framework's human-in-the-loop or tool-approval/interrupt mechanism for the RealtimeAgent path so model-selected tools require confirmation before dispatch, and log/alert on execute_python_code invocations coming from realtime sessions as a detection measure for exploitation attempts.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
AgentScope is a Python framework for building multi-agent LLM applications, and its RealtimeAgent class handles realtime (WebSocket-driven) sessions in which a remote client converses with a model that can decide to invoke registered tools. The flaw is a code-injection issue (CWE-94) rooted in a missing trust boundary between model output and privileged execution: in RealtimeAgent._acting, a model-produced tool call is passed to Toolkit.call_tool_function, which dispatches execute_python_code without an approval step or an isolation/sandbox layer on that path. Because the tool call is effectively attacker-influenced content (the remote WebSocket user can prompt the agent into selecting the tool with attacker-chosen arguments), the model's tool-selection decision becomes a direct code-execution primitive in the host Python process rather than an inert function call. The supplied CPE string is a placeholder (cpe:2.3:a:n/a:n/a), so the authoritative affected-product identification comes from the advisory description and the EUVD record rather than NVD CPE mapping; the relevant tags are RCE, Python, and code injection, consistent with the CWE-94 classification.
Know when Agentscope 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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Remote WebSocket user needs no authentication and no victim interaction (PR:N/UI:N), the forwarding path is deterministic (AC:L), and unsandboxed code execution yields full C/I/A loss.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
3DescriptionCVE.org
In agentscope 1.0.18, 1.0.19, and 1.0.19 when the RealtimeAgent session exposes execute_python_code as an available tool, a remote WebSocket user can prompt the agent to call that tool and run Python code in the service environment. In the validated path, RealtimeAgent._acting forwards the model-produced tool call to Toolkit.call_tool_function, which invokes execute_python_code without an additional approval or isolation boundary on that path.
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 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
Remote code execution in ModelScope AgentScope up to version 1.0.18 allows unauthenticated network attackers to inject a
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
Unauthenticated path traversal in AgentScope through 2.0.7.post1 allows remote attackers to copy arbitrary server-side d
Path traversal in AgentScope 1.0.0 through 1.0.18 lets an attacker who can influence the path argument passed to the age
EUVD-2026-90424
GHSA-8v8q-vxfm-pcf6
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB