AstrBot contains a directory traversal vulnerability
CVE-2025-57698 · GHSA-xrj9-mw57-j34v · published 2025-11-07
- Severity
- High
- CVSS score
- 8.7
- Chance of exploitation (EPSS)
- 0.83%
- Fixed in
- No fix yet
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
AstrBot Project v3.5.22 contains a directory traversal vulnerability. The handler function install_plugin_upload of the interface '/plugin/install-upload' parses the filename from the request body provided by the user, and directly uses the filename to assign to file_path without checking the validity of the filename. The variable file_path is then passed as a parameter to the function file.save, so that the file in the request body can be saved to any location in the file system through directory traversal.
No fixed release is listed yet for astrbot. 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 |
|---|---|---|---|
| astrbot | PyPI | <= 3.5.22 | No fix yet |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- CriticalVibe-Trading FastAPI endpoints permit unauthenticated access, file upload, and an RCE chainvibe-trading-ai
- 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
- CriticalAstrBot is vulnerable to RCE with hard-coded JWT signing keysastrbot
- HighAstrBot Has Path Traversal Vulnerability in /api/chat/get_fileastrbot
- MediumAstrBot Makes Use of Hard-coded Passwordastrbot
- MediumAstrBot has an arbitrary file read vulnerability in function _encode_image_bs64astrbot
- LowAstrBot: Manipulation of astr_main_agent's session_id parameter leads to authorization bypassastrbot
- LowAstrBot: File upload vulnerability in the function post_file of the file astrbot/dashboard/routes/chat.pyastrbot
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.