CVE-2024-8537 Path Traversal in modelscope/agentscope

Critical 9.1 Published Updated

Attackers can delete arbitrary files via path traversal in the delete-workflow endpoint of 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-8537?

CVE-2024-8537 is a critical 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 path traversal vulnerability exists in the modelscope/agentscope application, affecting all versions. The vulnerability is present in the /delete-workflow endpoint, allowing an attacker to delete arbitrary files from the filesystem. This issue arises due to improper input validation, enabling the attacker to manipulate file paths and delete sensitive files outside of the intended directory.

Weakness: CWE-29

Which versions are affected by CVE-2024-8537?

3 open source packages ship an affected version, including agentscope. It affects 1 product.

PackageAffectedFixed in
agentscope PyPIAll versions to 0.1.1None
agentscope PyPIAll versions to 0.1.1None
agentscope PyPIAll versions to 0.1.1None

Products include Modelscope Agentscope.

How do I fix CVE-2024-8537?

No fix has been published for CVE-2024-8537 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-8537 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8537 exists.

Sources

Also known as GHSA-c4cc-w454-4634, PYSEC-2026-254.

Is CVE-2024-8537 in your software?

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

Check your SBOMs for free