astrbot
Affected
- introduced
3.4.4, fixed3.5.13(ecosystem)
Fixed versions
3.5.13
Fix
- Fixed version
3.5.13pip install --upgrade astrbot==3.5.13
Advisory
Also known as: CVE-2025-48957, GHSA-cq37-g2qp-3c2p
AstrBot Has Path Traversal Vulnerability in /api/chat/get_file
Impact
This vulnerability may lead to:
Reproduce
Follow these steps to set up a test environment for reproducing the vulnerability:
pip install uv
git clone https://github.com/AstrBotDevs/AstrBot && cd AstrBot
uv run main.py
mkdir astrbot && cd astrbot
uvx astrbot init
uvx astrbot run
curl -L http://0.0.0.0:6185/api/chat/get_file?filename=../../../data/cmd_config.json
This request will read the cmd_config.json config file, leading to the leakage of sensitive data such as LLM API keys, usernames, and password hashes (MD5).
Patches
The vulnerability has been addressed in Pull Request #1676 and is included in versions >= v3.5.13. All users are strongly encouraged to upgrade to v3.5.13 or later.
Workarounds
Users can edit the cmd_config.json file to disable the dashboard feature as a temporary workaround. However, it is strongly recommended to upgrade to version v3.5.13 or later as soon as possible to fully resolve this issue.
References
High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
3.4.4, fixed 3.5.13 (ecosystem)3.5.13
3.5.13pip install --upgrade astrbot==3.5.13Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0