---
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: none
published: '2026-10-02'
updated: '2026-10-02'
sourceUpdated: '2026-10-02T16:16:51.123'
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
tags:
  - nvd
  - cve.org
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.
