CVE-2024-8550 Local File Inclusion (LFI) in modelscope/agentscope

High 7.5 Published Updated

Attackers can read arbitrary server files, including sensitive API keys, via the /load-workflow 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-8550?

CVE-2024-8550 is a high-severity path traversal vulnerability in modelscope/agentscope, published on 10 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A Local File Inclusion (LFI) vulnerability exists in the /load-workflow endpoint of modelscope/agentscope version v0.0.4. This vulnerability allows an attacker to read arbitrary files from the server, including sensitive files such as API keys, by manipulating the filename parameter. The issue arises due to improper sanitization of user input passed to the os.path.join function, which can be exploited to access files outside the intended directory.

Weakness: CWE-497

Which versions are affected by CVE-2024-8550?

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

PackageAffectedFixed in
agentscope PyPIAll versions to 0.0.4None

Products include Modelscope Agentscope.

How do I fix CVE-2024-8550?

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

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

Sources

Also known as GHSA-mrm5-rxf8-grcc, PYSEC-2025-84.

Is CVE-2024-8550 in your software?

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

Check your SBOMs for free