Description
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.
Published: 2026-10-02
Score: n/a
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

The vulnerability is a code injection flaw in agentscope's execute_shell_command function within the _shell.py module. By controlling the input to this function, an attacker can inject arbitrary system commands executed with the privileges of the agentscope process, resulting in full remote code execution. The underlying weakness aligns with command injection (CWE-78) and code injection (CWE-94).

Affected Systems

agentscope version 1.0.20 is affected. No other versions are currently documented as vulnerable, but any installation of this exact release should be considered at risk.

Risk and Exploitability

The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog. Nonetheless, the nature of the flaw grants an attacker complete control over the host system if they can exercise the execute_shell_command entry. The lack of an explicit exploitation path in the public data suggests the attack vector depends on the exposure of the vulnerable entry, likely via an unvalidated input endpoint. Given the severity of remote code execution, the risk remains high and should be treated as such.

Generated by OpenCVE AI on October 2, 2026 at 18:07 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade agentscope to a fixed release that removes the execute_shell_command injection flaw.
  • If an upgrade is not immediately possible, restrict or validate all inputs to the execute_shell_command function to eliminate untrusted command execution.
  • Limit or disable the exposed execute_shell_command endpoint if it is not required.

Generated by OpenCVE AI on October 2, 2026 at 18:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 02 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Title Code Injection Vulnerability in agentscope execute_shell_command allows Arbitrary Command Execution
First Time appeared Agentscope-ai
Agentscope-ai agentscope
Weaknesses CWE-78
CWE-94
Vendors & Products Agentscope-ai
Agentscope-ai agentscope

Fri, 02 Oct 2026 16:00:00 +0000

Type Values Removed Values Added
Description 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.
References

Subscriptions

Agentscope-ai Agentscope
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-10-02T15:47:58.935Z

Reserved: 2026-06-08T00:00:00.000Z

Link: CVE-2026-51922

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-02T16:16:51.123

Modified: 2026-10-02T18:47:49.947

Link: CVE-2026-51922

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-02T18:15:13Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')