CVE-2024-8551 Path Traversal in modelscope/agentscope
Attackers can read and write arbitrary JSON files via path traversal in workflow functions, exposing sensitive configuration data.
- 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-8551?
CVE-2024-8551 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 save-workflow and load-workflow functionality of modelscope/agentscope versions prior to the fix. This vulnerability allows an attacker to read and write arbitrary JSON files on the filesystem, potentially leading to the exposure or modification of sensitive information such as configuration files, API keys, and hardcoded passwords.
Weakness: CWE-23
Which versions are affected by CVE-2024-8551?
3 open source packages ship an affected version, including agentscope. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
agentscope PyPI | All versions to 0.1.1 | None |
agentscope PyPI | All versions to 0.1.1 | None |
agentscope PyPI | All versions to 0.1.1 | None |
Products include Modelscope Agentscope.
How do I fix CVE-2024-8551?
No fix has been published for CVE-2024-8551 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-8551 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-8551 exists.
Other vulnerabilities in modelscope/agentscope
Sources
Also known as GHSA-j9rw-qm5f-r8xm, PYSEC-2026-255.