CVE-2026-51922 Details
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.
A code injection vulnerability has been identified in AgentScope version 1.0.20, specifically within the 'execute_shell_command' function in the shell.py file. This vulnerability allows for the execution of arbitrary code or commands, triggered by an attacker through manipulated input. The issue arises because the function directly passes command strings to 'asyncio.create_subprocess_shell' without any validation or restrictions, creating a risk of unauthorized command execution.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 2, 2026CISA-ADP
Assessed Oct 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/agentscope-ai/agentscope/issues/1645 | CISA-ADP | ExploitIssue TrackingTechnical DescriptionVendor |
| https://gist.github.com/Ro1ME/78910899a99e2ba702d588e477d0755f | [email protected] | Broken LinkExploit |
| https://github.com/agentscope-ai/agentscope/issues/1645 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| agentscope | 1.0.20 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 6, 2026 | CVE Modified | CISA-ADP |
| Oct 2, 2026 | New CVE Received | [email protected] |
Volerion