CVE-2025-57698: PYSEC-2026-1198 - AstrBot contains a directory traversal vulnerability

CVE-2025-57698 · Severity: high · CVSS 7.5 · Published 2025-11-07

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.

Technologies: astrbot (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2025-57698 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-57698 being exploited in the wild.
How severe is CVE-2025-57698?
High severity, with a CVSS score of 7.5, published 7 November 2025.
Which products and versions are affected?
astrbot (PyPI) ECOSYSTEM:introduced=0,last_affected=3.5.22.
Is there a fix for CVE-2025-57698?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
Am I affected by CVE-2025-57698?
Check whether you run Astrbot or astrbot (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Affected products

  • Astrbot
  • astrbot (PyPI) ECOSYSTEM:introduced=0,last_affected=3.5.22

Identifiers

  • CVE-2025-57698
  • GHSA-xrj9-mw57-j34v
  • PYSEC-2026-1198

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.