{"id":"CVE-2026-51856","title":"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","summary":"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 t…","severity":"critical","cvss":9.8,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-94"],"published":"2026-09-30","updated":"2026-10-01","sourceUpdated":"2026-10-01T17:17:25.740","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-51856","references":[{"url":"https://gist.github.com/Ro1ME/c383f66d1fd6de40b6693f9b6cc181e7","label":"cve@mitre.org"},{"url":"https://github.com/agentscope-ai/agentscope/issues/1563","label":"cve@mitre.org"},{"url":"https://gist.github.com/Ro1ME/c383f66d1fd6de40b6693f9b6cc181e7","label":"134c704f-9b21-4f2e-91b3-4a467353bcc0"}],"tags":["nvd","cve.org","exploit-available"],"exploitAvailable":true,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-10-01T16:08:56.059920Z"},"epss":0.0042,"epssPercentile":0.36166,"ingestedAt":"2026-09-30T21:25:07.842Z","slug":"CVE-2026-51856","body":"## Overview\n\nIn 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"abyssal","depthScore":66,"depthScoreParts":{"impact":53.9,"likelihood":0.1,"exploitation":12,"ransomware":0},"changes":[{"seq":214588,"id":"CVE-2026-51856","ts":1790881076390,"field":"exploit_available","old":"false","new":"true"},{"seq":214587,"id":"CVE-2026-51856","ts":1790881076390,"field":"cvss","old":null,"new":"9.8"},{"seq":214586,"id":"CVE-2026-51856","ts":1790881076390,"field":"severity","old":"none","new":"critical"}]}