CVE-2024-8438
Modelscope Agentscope vulnerability
A path traversal vulnerability exists in modelscope/agentscope version v.0.0.4. The API endpoint `/api/file` does not properly sanitize the `path` parameter, allowing an attacker to read arbitrary files on the server.
Affected products
Agentscope. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Modelscope Agentscope runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- huntr.com/bounties/3f170c58-42ee-422d-ab6f-32c7aa05b974 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2024-8438
- github.com/modelscope/agentscope/blob/af8e45ded37b3834c981473b309239e0102473d0/src/agentsc
- github.com/advisories/GHSA-f4hc-q562-cc5r
- github.com/pypa/advisory-database/tree/main/vulns/agentscope/PYSEC-2025-80.yaml
- nvd.nist.gov/vuln/detail/CVE-2024-8438
- cve.org/CVERecord?id=CVE-2024-8438
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.