INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2024-48050

AgentScope uses `eval`

CVE-2024-48050 ยท 2024-11-05 high

Class
AI Framework and Platform Flaws (filed by a model that read the advisory)
Technique
Code and command execution
Affected
agentscope (PyPI)
CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.8% chance of exploitation in 30 days

How it works, in short

A helper evaluates a user-supplied string with eval, so the submitted expression runs arbitrary code on the host. (Our summary, written by a model. The source text is below.)

Details

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

Source: GitHub Advisory Database, used under CC BY 4.0.