AgentScope uses `eval`
High severity
GitHub Reviewed
Published
Nov 5, 2024
to the GitHub Advisory Database
•
Updated Nov 5, 2024
Description
Published by the National Vulnerability Database
Nov 4, 2024
Published to the GitHub Advisory Database
Nov 5, 2024
Reviewed
Nov 5, 2024
Last updated
Nov 5, 2024
In agentscope <=v0.0.4, the file
agentscope\web\workstation\workflow_utils.py
has the functionis_callable_expression
. Within this function, the lineresult = eval(s)
poses a security risk as it can directly execute user-provided commands.References