{"id":"GHSA-6p55-qr3j-mpgq","summary":"AgentScope uses `eval`","details":"In agentscope \u003c=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.","aliases":["CVE-2024-48050","PYSEC-2024-262"],"modified":"2026-05-20T08:11:12.810578690Z","published":"2024-11-05T00:31:28Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2024-11-05T16:10:09Z","nvd_published_at":"2024-11-04T23:15:04Z","cwe_ids":["CWE-94","CWE-95"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-48050"},{"type":"WEB","url":"https://gist.github.com/AfterSnows/0ad9d233a9d2a5b7e6e5273e2e23508d"},{"type":"PACKAGE","url":"https://github.com/modelscope/agentscope"},{"type":"WEB","url":"https://github.com/modelscope/agentscope/blob/main/src/agentscope/web/workstation/workflow_utils.py#L11"},{"type":"WEB","url":"https://rumbling-slice-eb0.notion.site/Unauthenticated-Remote-Code-Execution-via-The-use-of-eval-in-is_callable_expression-and-sanitize_nod-cd4ea6c576da4e0b965ef596855c298d"}],"affected":[{"package":{"name":"agentscope","ecosystem":"PyPI","purl":"pkg:pypi/agentscope"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.1.0"}]}],"versions":["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.5a1","0.0.6a1","0.0.6a2","0.1.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-6p55-qr3j-mpgq/GHSA-6p55-qr3j-mpgq.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P"}]}