---
id: CVE-2026-51922
title: >-
  agentscope v1.0.20 contains code injection in execute_shell_command
  (src/agentscope/tool/_coding/_shell.py)
summary: >-
  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.
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
published: '2026-10-02'
updated: '2026-10-06'
sourceUpdated: '2026-10-06T03:17:03.040'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-51922'
references:
  - url: 'https://gist.github.com/Ro1ME/78910899a99e2ba702d588e477d0755f'
    label: cve@mitre.org
  - url: 'https://github.com/agentscope-ai/agentscope/issues/1645'
    label: cve@mitre.org
  - url: 'https://github.com/agentscope-ai/agentscope/issues/1645'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-10-06T02:25:18.817151Z'
epss: 0.01138
epssPercentile: 0.66408
ingestedAt: '2026-10-02T16:22:59.535Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
