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: 9.8 Critical
EPSS: < 1% Very Low
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 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 < 1% and the vulnerability is not listed in the CISA KEV catalog. The CVSS score is 9.8, indicating a critical severity. 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 6, 2026 at 06:27 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 6, 2026 at 06:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 06 Oct 2026 06:45:00 +0000

Type Values Removed Values Added
Title Code Injection Vulnerability in agentscope Execute Shell Command

Tue, 06 Oct 2026 05:15:00 +0000

Type Values Removed Values Added
Title Code Injection Vulnerability in agentscope execute_shell_command allows Arbitrary Command Execution
Weaknesses CWE-78

Tue, 06 Oct 2026 03:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


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-06T02:26:09.697Z

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

Link: CVE-2026-51922

cve-icon Vulnrichment

Updated: 2026-10-06T02:26:00.810Z

cve-icon NVD

Status : Deferred

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

Modified: 2026-10-06T03:17:03.040

Link: CVE-2026-51922

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-06T06:30:08Z

Weaknesses
  • CWE-94

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