Browse / AI Framework and Platform Flaws / CVE-2024-8438
AgentScope Path Traversal in /api/file
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Path traversal and file access
- Affected
- agentscope (PyPI)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS
- 0.8% chance of exploitation in 30 days
How it works, in short
The file API endpoint uses an unsanitised path parameter, letting remote callers read arbitrary files on the server. (Our summary, written by a model. The source text is below.)
Details
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-8438
- https://github.com/modelscope/agentscope
- 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://huntr.com/bounties/3f170c58-42ee-422d-ab6f-32c7aa05b974
Source: GitHub Advisory Database, used under CC BY 4.0.