Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. agentscope
  4. ›
  5. CVE-2024-48050

CVE-2024-48050: AgentScope uses `eval`

November 5, 2024 (updated November 7, 2024)

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

  • gist.github.com/AfterSnows/0ad9d233a9d2a5b7e6e5273e2e23508d
  • github.com/advisories/GHSA-6p55-qr3j-mpgq
  • github.com/modelscope/agentscope
  • github.com/modelscope/agentscope/blob/main/src/agentscope/web/workstation/workflow_utils.py
  • nvd.nist.gov/vuln/detail/CVE-2024-48050
  • rumbling-slice-eb0.notion.site/Unauthenticated-Remote-Code-Execution-via-The-use-of-eval-in-is_callable_expression-and-sanitize_nod-cd4ea6c576da4e0b965ef596855c298d

Code Behaviors & Features

Detect and mitigate CVE-2024-48050 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 0.1.0

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-94: Improper Control of Generation of Code ('Code Injection')
  • CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')

Source file

pypi/agentscope/CVE-2024-48050.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:17 +0000.