CVE-2024-8524: ModelScope AgentScope directory traversal in /read-examples

CVE-2024-8524 · Severity: high · CVSS 7.5 · Published 2025-03-20

AgentScope is a framework used to build multi-agent applications. A security flaw in its web-based studio component allows an attacker to bypass folder restrictions and read sensitive JSON files from the host server. This could lead to the exposure of configuration data, credentials, or internal application logic.

Technologies: agentscope (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2024-8524 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2024-8524 being exploited in the wild.
How severe is CVE-2024-8524?
High severity, with a CVSS score of 7.5, published 20 March 2025.
Which products and versions are affected?
agentscope (PyPI) <= 0.0.4, ECOSYSTEM:introduced=0,last_affected=0.0.4.
Is there a fix for CVE-2024-8524?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2024-8524 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2024-8524?
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.

Technical details

A directory traversal vulnerability (CWE-22) exists in the AgentScope Studio component within the `/read-examples` endpoint. The root cause is improper neutralization of user-supplied path sequences in a POST request, allowing an attacker to escape the intended directory. By crafting a request with traversal sequences (e.g., `../`), an unauthenticated remote attacker can read any JSON file on the local filesystem that the application process has permissions to access. This vulnerability affects version 0.0.4 and earlier; no patched version is currently specified in the advisory.

Affected products

  • ModelScope AgentScope <= 0.0.4

Identifiers

  • CVE-2024-8524
  • GHSA-6v28-q95m-93qr
  • PYSEC-2025-83

Timeline

  • 2025-03-20: disclosed
  • 2025-03-20: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.