modelscope/agentscope · Security
AgentScope Path Traversal in /api/file
- GHSA ID
- GHSA-f4hc-q562-cc5r
- CVE ID
- CVE-2024-8438
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- CVSS v3
- 7.5 · CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Description
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.
CWEs
- CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-8438 ↗
- https://huntr.com/bounties/3f170c58-42ee-422d-ab6f-32c7aa05b974 ↗
- https://github.com/modelscope/agentscope/blob/af8e45ded37b3834c981473b309239e0102473d0/src/agentscope/studio/_app.py#L578 ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/agentscope/PYSEC-2025-80.yaml ↗
- https://github.com/advisories/GHSA-f4hc-q562-cc5r ↗