HIGH7.3
PYSEC-2026-2331
AgentScope Vulnerable to Remote Code Injection
Details
A vulnerability was determined in modelscope agentscope up to 1.0.18. Affected by this vulnerability is the function execute_python_code/execute_shell_command of the file src/AgentScope/tool/_coding/_python.py. This manipulation causes code injection. The attack is possible to be carried out remotely. The exploit has been publicly disclosed and may be utilized. The vendor was contacted early about this disclosure but did not respond in any way.
Are you affected?
Enter the version of the package you're using.
Affected packages
PyPI/agentscope
Introduced in:
0No fixed version published yet for agentscope (pip). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-6603[ADVISORY]
- https://gist.github.com/YLChen-007/c084d69aaeda6729f3988603f2b0ce6e[WEB]
- https://github.com/agentscope-ai/agentscope[PACKAGE]
- https://vuldb.com/submit/792223[WEB]
- https://vuldb.com/vuln/358238[WEB]
- https://vuldb.com/vuln/358238/cti[WEB]
- https://pypi.org/project/agentscope[PACKAGE]
- https://github.com/advisories/GHSA-cr24-fv3h-8cjm[ADVISORY]