agentscopeGHSA-6p55-qr3j-mpgq
AgentScope uses `eval`
High9.8CVE-2024-48050 · Published Nov 5, 2024 · updated May 20, 2026
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
More agentscope advisories
All agentscope| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Mar 202025 | AgentScope arbitrary file download vulnerability in rpc_agent_client | High7.5 | No fix yet |
| Mar 202025 | AgentScope path traversal vulnerability in save-workflow | Critical9.1 | No fix yet |
| Mar 202025 | AgentScope Path Traversal in /api/file | High7.5 | No fix yet |
| Mar 202025 | AgentScope path traversal vulnerability | Critical9.1 | No fix yet |
| Mar 202025 | AgentScope Deserialization Vulnerability | Critical9.8 | No fix yet |
| Feb 102025 | agentscope: attacker could read arbitrary files | High7.5 | No fix yet |