# CVE-2024-48050: AgentScope uses `eval`

Source: https://junglewise.ai/threats/cve-2024-48050-agentscope-uses-eval  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-11-04  
License: CC BY 4.0 with a link back

CVE-2024-48050 · Severity: low · CVSS 3.1 · Published 2024-11-04

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.

Technologies: [agentscope (PyPI)](https://junglewise.ai/threats/technologies/agentscope). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-48050 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-48050 being exploited in the wild.

**How severe is CVE-2024-48050?** Low severity, with a CVSS score of 3.1, published 4 November 2024.

**Which products and versions are affected?** agentscope (PyPI) ECOSYSTEM:introduced=0,fixed=0.0.5a1, ECOSYSTEM:introduced=0,last_affected=0.1.0.

**Is there a fix for CVE-2024-48050?** Yes. agentscope (PyPI): upgrade to 0.0.5a1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-48050?** Check whether you run agentscope (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- agentscope (PyPI): upgrade to 0.0.5a1 or later

  ```sh
  pip install "agentscope>=0.0.5a1"
  ```


## Affected products

- agentscope (PyPI) ECOSYSTEM:introduced=0,fixed=0.0.5a1, ECOSYSTEM:introduced=0,last_affected=0.1.0

## Identifiers

- CVE-2024-48050
- GHSA-6p55-qr3j-mpgq
- PYSEC-2024-262

## Related threats

- [PYSEC-2026-1076 - AgentScope stored cross-site scripting (XSS) vulnerability](https://junglewise.ai/threats/cve-2024-8556-agentscope-stored-cross-site-scripting-xss-vulnerability)
- [AgentScope vulnerable to Server-Side Request Forgery](https://junglewise.ai/threats/cve-2026-6606-agentscope-vulnerable-to-server-side-request-forgery)
- [AgentScope vulnerable to Server-Side Request Forgery](https://junglewise.ai/threats/cve-2026-6605-agentscope-vulnerable-to-server-side-request-forgery)
- [AgentScope vulnerable to Server-Side Request Forgery](https://junglewise.ai/threats/cve-2026-6604-agentscope-vulnerable-to-server-side-request-forgery)
- [PYSEC-2026-2331 - AgentScope Vulnerable to Remote Code Injection](https://junglewise.ai/threats/cve-2026-6603-agentscope-vulnerable-to-remote-code-injection)
