Skip to main content

AgentScope EUVDEUVD-2026-91754

| CVE-2026-51922 CRITICAL
Code Injection (CWE-94)
2026-10-02 mitre GHSA-cj2c-23cc-r2qj
9.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Reach application exposing agentscope shell tool
  2. Exploit
    Inject payload into execute_shell_command input
  3. Execution
    Unsanitized command string executed by host shell
  4. Impact
    Arbitrary 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.

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

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

Alert me

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

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

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 8.1 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/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
CVSS changed
Oct 06, 2026 - 03:22 NVD
9.8 (CRITICAL)
CVE Published
Oct 02, 2026 - 00:00 cve.org
CRITICAL 9.8
CVE Published
Oct 02, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Low
niche open-source LLM multi-agent framework, limited production deployment footprint
Data Quality
5 sources
Confidence: Medium

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.3%
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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
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.

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