GitHub Advisoryadvisory · PyPI

GHSA-6p55-qr3j-mpgq AgentScope uses `eval`

HIGH Published 2024-11-05 Modified 2024-11-07 Official page ↗
Aliases
CVE-2024-48050
Ecosystem
PyPI
Packages
agentscope
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-94, CWE-95
Reviewed
2024-11-05

Affected packages

• PyPI agentscope: <= 0.1.0 (no fix yet)

Description

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.

Related

Alias · CVE (1)

  • CVE-2024-48050 In agentscope <=v0.0.4, the file agentscope\web\workstation\workflow_utils.py has the function is_callable_expression. vulnerability

Weakness · CWE (2)

  • CWE-94 Improper Control of Generation of Code weakness
  • CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code weakness

References