Arbitrary Code Injection Affecting agentscope package, versions [0,]
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-PYTHON-AGENTSCOPE-8145543
- published 2 Oct 2024
- disclosed 1 Oct 2024
- credit Unknown
How to fix?
There is no fixed version for agentscope
.
Overview
agentscope is an AgentScope: A Flexible yet Robust Multi-Agent Platform.
Affected versions of this package are vulnerable to Arbitrary Code Injection. This vulnerability is caused by an incomplete fix for SNYK-PYTHON-AGENTSCOPE-8145542. The applied black-list to filter out dangerous commands can be simply bypassed. For example, the attackers can run rm --rf
(note that there are more than one space character in between the rm
and -rf
) to bypass the check as the blocked item only has one space in between. Moreover, the current black-list also overlooked many other dangerous commands such as netcat
, the hackers can simply create a backdoor by the command nc -lvvp 6666 -e /bin/sh
to enable a remote shell and then log into the victim system to run arbitrary commands as follows.