# CVE-2026-51856: In agentscope 1.0.18, 1.0.19, and 1.0.19 when the RealtimeAgent session exposes executepythoncode as an available tool, a remote WebSocket…

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-30T00:00:00.000Z
- Modified: 2026-10-01T17:17:25.740Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a

## References

- <https://gist.github.com/Ro1ME/c383f66d1fd6de40b6693f9b6cc181e7> (exploit)
- <https://github.com/agentscope-ai/agentscope/issues/1563>

## Sources

- CVE List: [CVE-2026-51856](https://www.cve.org/CVERecord?id=CVE-2026-51856), CVE Terms of Use, modified 2026-10-01
- NVD: [CVE-2026-51856](https://nvd.nist.gov/vuln/detail/CVE-2026-51856), Public domain, modified 2026-10-01

---

Page: https://cve.day/CVE-2026-51856 · Whole record: https://cve.day/CVE-2026-51856.json · Rebuilt by cve.day 2026-11-25T22:59:41.769Z
