agentscopeGHSA-6p55-qr3j-mpgq
AgentScope uses `eval`
No fix yet
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 versions
| Package | Affected | Fixed in |
|---|---|---|
| agentscope PyPI | <= 0.1.0 | No fix yet |
Details and references
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-94, CWE-95
- Also known as
- CVE-2024-48050, PYSEC-2024-262
- nvd.nist.gov/vuln/detail/CVE-2024-48050
- gist.github.com/AfterSnows/0ad9d233a9d2a5b7e6e5273e2e23508d
- github.com/modelscope/agentscope
- github.com/modelscope/agentscope/blob/main/src/agentscope/web/workstation/workflow_utils.py#L11
- rumbling-slice-eb0.notion.site/Unauthenticated-Remote-Code-Execution-via-The-use-of-eval-in-is_callable_expression-and-sanitize_nod-cd4ea6c576da4e0b965ef596855c298d