CVE-2024-8524 Directory Traversal in modelscope/agentscope
An attacker can read arbitrary local JSON files by sending a crafted POST request to the /read-examples endpoint in the agentscope library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-8524?
CVE-2024-8524 is a high-severity path traversal vulnerability in modelscope/agentscope, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A directory traversal vulnerability exists in modelscope/agentscope version 0.0.4. An attacker can exploit this vulnerability to read any local JSON file by sending a crafted POST request to the /read-examples endpoint.
Weakness: CWE-22
Which versions are affected by CVE-2024-8524?
3 open source packages ship an affected version, including agentscope. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
agentscope PyPI | All versions to 0.0.4 | None |
agentscope PyPI | All versions to 0.0.4 | None |
agentscope PyPI | All versions to 0.0.4 | None |
Products include Modelscope Agentscope.
How do I fix CVE-2024-8524?
No fix has been published for CVE-2024-8524 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-8524 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8524 exists.
Other vulnerabilities in modelscope/agentscope
Sources
Also known as GHSA-6v28-q95m-93qr, PYSEC-2025-83.