CVE-2026-51856 Details
Description
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.
A vulnerability in AgentScope versions 1.0.18, 1.0.19, and 1.0.19.post1 allows for remote code execution via the RealtimeAgent session. When the 'execute_python_code' tool is available, a remote WebSocket user can instruct the agent to execute Python code in the service environment. This issue arises because the tool call is forwarded without proper approval or isolation, enabling unauthorized execution of code on the server.
Users can update to the latest version of AgentScope, where this vulnerability has been addressed.
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 Sep 30, 2026CISA-ADP
Assessed Oct 1, 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/Ro1ME/c383f66d1fd6de40b6693f9b6cc181e7 | CISA-ADP | ExploitTechnical Description |
| https://gist.github.com/Ro1ME/c383f66d1fd6de40b6693f9b6cc181e7 | [email protected] | ExploitTechnical Description |
| https://github.com/agentscope-ai/agentscope/issues/1563 | [email protected] | Issue TrackingTechnical DescriptionVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| AgentScope | >= 1.0.18, <= 1.0.19 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 1, 2026 | CVE Modified | CISA-ADP |
| Sep 30, 2026 | New CVE Received | [email protected] |
Volerion