CVE-2026-51856
Remote Python Code Execution without Authentication in AgentScope
Critical 9.8 No auth needed
Follow: this CVE We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- —
- Auth required
- No
- Published
- Sep 30, 2026
- Updated
- Oct 1, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
AgentScope versions 1.0.18 and 1.0.19 allow remote users to execute arbitrary Python code via WebSocket when RealtimeAgent exposes the execute_python_code tool. The agent processes model-generated tool calls without additional validation or isolation, enabling code execution in the service environment without authentication.
Show the original NVD text
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.
What to do
No patch data
Update AgentScope to a version after 1.0.19 when available. In the meantime, disable the execute_python_code tool in RealtimeAgent or restrict WebSocket access.
- Check whether you run any of the affected products and follow the vendor advisory.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Official sources
References
Links published by the sources. Open them with care.