CVE-2024-48050
CRITICAL9.8EPSS 0.19%AgentScope uses `eval`
發布日:2024/11/5修改日:2026/5/20
描述
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.
受影響套件(2)
- PyPI/agentscopefrom 0, <= 0.1.0
- PyPI/agentscopefrom 0, < 0.0.5a1
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
參考連結(5)
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2024-48050
- PATCHhttps://github.com/modelscope/agentscope
- WEBhttps://gist.github.com/AfterSnows/0ad9d233a9d2a5b7e6e5273e2e23508d
- WEBhttps://github.com/modelscope/agentscope/blob/main/src/agentscope/web/workstation/workflow_utils.py#L11
- WEBhttps://rumbling-slice-eb0.notion.site/Unauthenticated-Remote-Code-Execution-via-The-use-of-eval-in-is_callable_expression-and-sanitize_nod-cd4ea6c576da4e0b965ef596855c298d