AgentScope Path Traversal in /api/file
CVE-2024-8438 · GHSA-f4hc-q562-cc5r · published 2025-03-20 · updated 2026-06-05
- Severity
- High
- CVSS score
- 7.5
- Chance of exploitation (EPSS)
- 0.77%
- Fixed in
- No fix yet
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Partial
- CISA SSVC
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.
No fixed release is listed yet for agentscope. Follow the source advisory for updates, and until one ships:
General guidance from ShieldPi, not a vendor fix
- Path traversal. Limit the folders it can reach at the operating-system level, such as a container or a user with access to only those folders, and keep credentials and keys outside them.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| agentscope | PyPI | <= 0.0.4 | No fix yet |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- CriticalMCP Toolbox HTTP tool path parameters allow traversal to unintended endpointsgithub.com/googleapis/mcp-toolbox
- CriticalAgentScope Deserialization Vulnerabilityagentscope
- CriticalAgentScope path traversal vulnerabilityagentscope
- CriticalAgentScope path traversal vulnerability in save-workflowagentscope
- HighAgentScope directory traversal vulnerability in /read-examplesagentscope
- HighAgentScope Cross-Origin Resource Sharing (CORS) vulnerabilityagentscope
- HighAgentScope arbitrary file download vulnerability in rpc_agent_clientagentscope
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.