CVE-2024-48050
Modelscope Agentscope vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Agentscope. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Modelscope Agentscope runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- gist.github.com/AfterSnows/0ad9d233a9d2a5b7e6e5273e2e23508d · Exploit
- rumbling-slice-eb0.notion.site/Unauthenticated-Remote-Code-Execution-via-The-use-of-eval-i · Exploit
- nvd.nist.gov/vuln/detail/CVE-2024-48050
- github.com/modelscope/agentscope/blob/main/src/agentscope/web/workstation/workflow_utils.p
- github.com/advisories/GHSA-6p55-qr3j-mpgq
- nvd.nist.gov/vuln/detail/CVE-2024-48050
- cve.org/CVERecord?id=CVE-2024-48050
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.