Skip to main content

AgentScope EUVDEUVD-2026-90424

| CVE-2026-51856 CRITICAL
Code Injection (CWE-94)
2026-09-30 mitre GHSA-8v8q-vxfm-pcf6
9.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Connect to exposed RealtimeAgent WebSocket
  2. Delivery
    Send prompt inducing execute_python_code call
  3. Exploit
    Tool call forwarded to Toolkit.call_tool_function
  4. Execution
    Arbitrary Python runs unsandboxed in service env
  5. Impact
    Full 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

n/a n/a

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

Vendor (mitre) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVE Published
Oct 01, 2026 - 21:38 cve.org
CRITICAL 9.8
CVSS changed
Oct 01, 2026 - 17:37 NVD
9.8 (None) 9.8 (CRITICAL)
CVE Published
Sep 30, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

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

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Low
emerging open-source multi-agent framework, limited production deployment footprint
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

CVE-2024-48050 CRITICAL POC
9.8 Nov 04

In agentscope <=v0.0.4, the file agentscope\web\workstation\workflow_utils.py has the function is_callable_expression. R

CVE-2024-8537 CRITICAL POC
9.1 Mar 20

A path traversal vulnerability exists in the modelscope/agentscope application, affecting all versions. Rated critical s

CVE-2024-8551 CRITICAL POC
9.1 Mar 20

A path traversal vulnerability exists in the save-workflow and load-workflow functionality of modelscope/agentscope vers

CVE-2024-8501 HIGH POC
8.8 Mar 20

An arbitrary file download vulnerability exists in the rpc_agent_client component of modelscope/agentscope version v0.0.

CVE-2024-8524 HIGH POC
7.5 Mar 20

A directory traversal vulnerability exists in modelscope/agentscope version 0.0.4. Rated high severity (CVSS 7.5), this

CVE-2024-8438 HIGH POC
7.5 Mar 20

A path traversal vulnerability exists in modelscope/agentscope version v.0.0.4. Rated high severity (CVSS 7.5), this vul

CVE-2026-6603 MEDIUM POC
5.5 Apr 20

Remote code execution in ModelScope AgentScope up to version 1.0.18 allows unauthenticated network attackers to inject a

CVE-2026-6606 MEDIUM POC
5.5 Apr 20

Modelscope AgentScope versions up to 1.0.18 contain a server-side request forgery (SSRF) vulnerability in the _process_a

CVE-2026-6605 MEDIUM POC
5.5 Apr 20

Server-side request forgery in ModelScope AgentScope up to version 1.0.18 allows remote unauthenticated attackers to man

CVE-2026-6604 MEDIUM POC
5.5 Apr 20

Server-side request forgery (SSRF) in ModelScope AgentScope up to version 1.0.18 allows remote unauthenticated attackers

CVE-2026-85685 HIGH
8.7 Sep 04

Unauthenticated path traversal in AgentScope through 2.0.7.post1 allows remote attackers to copy arbitrary server-side d

CVE-2026-51568 HIGH
8.1 Sep 30

Path traversal in AgentScope 1.0.0 through 1.0.18 lets an attacker who can influence the path argument passed to the age

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy