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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.19%, higher than 68% of CVEs (2026-11-30)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2024-11-04T00:00:00.000Z
- Modified: 2026-06-17T07:58:09.720Z
- Also known as: GHSA-6p55-qr3j-mpgq, PYSEC-2024-262
- Weaknesses: CWE-94, CWE-95
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- modelscope agentscope: up to 0.0.4
- agentscope (PyPI): up to 0.1.0; before 0.0.5a1

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://rumbling-slice-eb0.notion.site/Unauthenticated-Remote-Code-Execution-via-The-use-of-eval-in-is_callable_expression-and-sanitize_nod-cd4ea6c576da4e0b965ef596855c298d> (exploit, evidence, third-party-advisory, web)
- <https://gist.github.com/AfterSnows/0ad9d233a9d2a5b7e6e5273e2e23508d> (exploit, evidence, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-48050> (advisory)
- <https://github.com/modelscope/agentscope> (package)
- <https://github.com/modelscope/agentscope/blob/main/src/agentscope/web/workstation/workflow_utils.py#L11> (web)
- <https://github.com/advisories/GHSA-6p55-qr3j-mpgq> (advisory)

## Sources

- CVE List: [CVE-2024-48050](https://www.cve.org/CVERecord?id=CVE-2024-48050), CVE Terms of Use, modified 2024-11-06
- GitHub Advisory Database: [GHSA-6p55-qr3j-mpgq](https://github.com/advisories/GHSA-6p55-qr3j-mpgq), CC-BY-4.0, modified 2026-05-20
- NVD: [CVE-2024-48050](https://nvd.nist.gov/vuln/detail/CVE-2024-48050), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-262](https://osv.dev/vulnerability/PYSEC-2024-262), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-48050 · Whole record: https://cve.day/CVE-2024-48050.json · Rebuilt by cve.day 2026-11-25T22:58:47.727Z
