CVE-2024-48050: AgentScope uses `eval`
In agentscope <=v0.0.4, the file agentscope\web\workstation\workflowutils.py has the function iscallableexpression. Within this function, the line result = eval(s) poses a security risk as it can directly execute user-provided commands.
Published Nov 5, 2024 · Updated Nov 7, 2024
Affected packages
agentscope
- Ecosystem
- PyPI
- Affected
- <= 0.1.0
- Fixed in
- No patched version yet
- Check
pip show agentscope
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-48050
- 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/modelscope/agentscope/blob/main/src/agentscope/web/workstation/workflow_utils.py#L11
- https://github.com/advisories/GHSA-6p55-qr3j-mpgq
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-6603
AgentScope Vulnerable to Remote Code Injection
medium7.3No fixApr 20, 2026CVE-2026-6604
AgentScope vulnerable to Server-Side Request Forgery
medium7.3No fixApr 20, 2026CVE-2026-6605
AgentScope vulnerable to Server-Side Request Forgery
medium7.3No fixApr 20, 2026CVE-2026-6606
AgentScope vulnerable to Server-Side Request Forgery
medium7.3No fixApr 20, 2026CVE-2024-8438
AgentScope Path Traversal in /api/file
high7.5No fixMar 20, 2025CVE-2024-8487
AgentScope Cross-Origin Resource Sharing (CORS) vulnerability
high7.4No fixMar 20, 2025
