critical9.8
CVE-2024-48050
AgentScope uses `eval`
Impact
In agentscope <=v0.0.4, the file `agentscope\web\workstation\workflow_utils.py` has the function `is_callable_expression`. Within this function, the line `result = eval(s)` poses a security risk as it can directly execute user-provided commands.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | agentscope | <= 0.1.0 | none recorded |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Modelscope | Agentscope | through 0.0.4 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://gist.github.com/AfterSnows/0ad9d233a9d2a5b7e6e5273e2e23508d
- https://rumbling-slice-eb0.notion.site/Unauthenticated-Remote-Code-Execution-via-The-use-of-eval-in-is_callable_expression-and-sanitize_nod-cd4ea6c576da4e0b965ef596855c298d
- https://github.com/advisories/GHSA-6p55-qr3j-mpgq
- https://nvd.nist.gov/vuln/detail/CVE-2024-48050
- https://github.com/modelscope/agentscope/blob/main/src/agentscope/web/workstation/workflow_utils.py#L11