Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach application exposing agentscope shell tool
-
ExploitInject payload into execute_shell_command input
-
ExecutionUnsanitized command string executed by host shell
-
ImpactArbitrary command execution and full host compromise
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 the host application to expose agentscope's execute_shell_command tool to attacker-influenced input - the description's 'Depending on the exposed entry' means the shell tool must be reachable via an agent that acts on untrusted prompts, an exposed API, or similar routing of external data into the command. The key limiting factor is this deployment choice: agentscope installations that never expose the shell tool to untrusted input, or that gate it behind authentication/human approval, are not exploitable despite the library being present. No user interaction is required once untrusted input reaches the tool, and no special platform is needed beyond running agentscope v1.0.20 with the vulnerable code path exposed. |
| Impact | Signals conflict and should be weighed carefully. The CVSS 3.1 base score of 9.8 (AV:N/AC:L/PR:N/UI:N, full C/I/A impact) describes a worst-case unauthenticated remote code-execution scenario, and CWE-94 (code injection) in a shell-execution helper is inherently severe. However, the description explicitly qualifies this with 'Depending on the exposed entry,' meaning exploitability is contingent on whether the host application wires execute_shell_command to attacker-reachable input - so the clean AV:N/PR:N characterization likely overstates the default-configuration risk. The EPSS score is low (0.27%, 17th percentile), indicating no modeled trend toward widespread opportunistic exploitation, and the CVE is NOT in CISA KEV (no confirmed active exploitation). A researcher gist is linked, which typically indicates public proof-of-concept material, but no explicit POC flag is provided in the input, so this should be treated as probable rather than confirmed. Net: this is a genuinely high-impact code-injection flaw whose real-world priority is strongly deployment-dependent rather than a mass-exploitation emergency - elevate it where agentscope's shell tool is exposed to untrusted/LLM-routed input, and down-rank it where the tool is only invoked internally. Note: the input CPE string 'cpe:2.3:a:n/a:n/a' is a placeholder and provides no reliable affected-product bounds - verify versions against the GitHub issue. |
| Exploit ScenarioDerived | An application built on agentscope v1.0.20 exposes the execute_shell_command tool to externally influenced input (for example, an LLM agent that acts on untrusted user prompts or an API endpoint). An attacker submits crafted input containing shell/code-injection syntax; because the command string is not safely sanitized, the attacker's commands execute on the host with the process's privileges. A public gist linked in the references appears to document proof-of-concept exploitation of this path. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 06, 2026
Code injection in AgentScope v1.0.20 allows unauthenticated remote attackers to execute arbitrary commands if a host application exposes the execute_shell_command tool to attacker-influenced input. The assessed vector is CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H, so exploitation depends on that exposure/deployment condition; the NVD-style vector of AV:N/AC:L is more optimistic and conflicts with the assessed high attack complexity. No public exploit identified at time of analysis, and EPSS is low at 0.27% (17th percentile).
RemediationAI
No vendor-released patch identified at time of analysis. Primary mitigation is to prevent untrusted input from reaching execute_shell_command in AgentScope v1.0.20: disable or remove the shell tool from any agent that processes external prompts, exposed APIs, or other attacker-influenced data; require authentication and human approval before command execution; and allowlist only necessary commands instead of passing raw strings. If the tool must remain enabled, run AgentScope in a sandboxed container/VM with least privilege, no host secrets, restricted filesystem access, and egress filtering, accepting that these controls can break legitimate automation and add operational overhead. Monitor https://github.com/agentscope-ai/agentscope/issues/1645 for a fixed release and apply the vendor-patched version as soon as it is available.
Affected VersionsENISA
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 multi-agent framework; the vulnerable function execute_shell_command in src/agentscope/tool/_coding/_shell.py constructs and executes shell commands from agent/tool input. The root cause is CWE-94 improper control of code generation: untrusted strings reach a shell execution sink without sufficient escaping, allowlisting, or isolation, so an attacker who can influence the command can inject arbitrary commands. CPE data is uninformative (cpe:2.3:a:n/a:n/a:*:*:*:*:*:*:*:*) and EUVD lists affected versions as n/a n/a; the practical affected component is AgentScope v1.0.20. The independent assessment rates AC:H because the host application must expose this tool to untrusted prompts or an exposed API, but once that path is reachable, no authentication, user interaction, or special platform is required. References include the vendor issue and a public gist.
Know when the next one hits your stack
- 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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Code injection yields full host RCE (C/I/A High), but 'depending on the exposed entry' makes success contingent on the application routing untrusted input to the shell tool, so AC:H rather than AC:L.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
3DescriptionCVE.org
agentscope v1.0.20 contains code injection in execute_shell_command (src/agentscope/tool/_coding/_shell.py). Depending on the exposed entry, an attacker can trigger attacker-controlled code or command execution.
Executive ViewAI
AgentScope v1.0.20 carries a critical code injection risk that could allow unauthenticated remote attackers to execute arbitrary commands on affected hosts when the execute_shell_command tool is exposed to untrusted input. Organizations using this version in externally reachable or automation-driven environments should treat it as a potential system-compromise and service-disruption issue, especially because no vendor-released patch is currently available and exploitation depends on specific deployment exposure. No public exploit has been identified at time of analysis, but the potential organizational impact remains high and requires immediate exposure reduction.
No vendor-released patch identified at time of analysis. Interim mitigations: disable or remove the execute_shell_command tool from any externally accessible or attacker-influenced workflow; restrict AgentScope v1.0.20 deployments to trusted inputs and trusted network sources; enforce least-privilege execution, command allowlisting, and strict input validation; segment and monitor affected hosts for anomalous command execution; and apply a vendor patch as soon as a fixed AgentScope version is released.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
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.
EUVD-2026-91754
GHSA-cj2c-23cc-r2qj
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB