AstrBot has an arbitrary file read vulnerability in function _encode_image_bs64
CVE-2025-57697 · GHSA-vm2f-46xc-5jc3 · published 2025-11-07 · updated 2025-11-15
- Severity
- Medium
- CVSS score
- 5.7
- Chance of exploitation (EPSS)
- 0.34%
- Fixed in
- No fix yet
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
AstrBot Project v3.5.22 has an arbitrary file read vulnerability in function _encode_image_bs64. Since the _encode_image_bs64 function defined in entities.py opens the image specified by the user in the request body and returns the image content as a base64-encoded string without checking the legitimacy of the image path, attackers can construct a series of malicious URLs to read any specified file, resulting in sensitive data leakage.
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 contains a directory traversal vulnerabilityastrbot
- HighAstrBot Has Path Traversal Vulnerability in /api/chat/get_fileastrbot
- MediumAstrBot Makes Use of Hard-coded Passwordastrbot
- 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.