CVE-2024-8524 Directory Traversal in modelscope/agentscope

High 7.5 Published Updated

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.

PackageAffectedFixed in
agentscope PyPIAll versions to 0.0.4None
agentscope PyPIAll versions to 0.0.4None
agentscope PyPIAll versions to 0.0.4None

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.

Sources

Also known as GHSA-6v28-q95m-93qr, PYSEC-2025-83.

Is CVE-2024-8524 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free