CVE-2025-57698 AstrBot contains a directory traversal vulnerability

High 7.5 Published Updated

Attackers can upload malicious files to arbitrary locations via directory traversal in the plugin installation endpoint, potentially leading to code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-57698?

CVE-2025-57698 is a high-severity path traversal vulnerability in n/a, published on 7 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-22

Which versions are affected by CVE-2025-57698?

3 open source packages ship an affected version, including astrbot and AstrBot. It affects 1 product.

PackageAffectedFixed in
astrbot PyPIAll versions to 3.5.22None
astrbot PyPIAll versions to 3.5.22None
AstrBot PyPIAll versions to 3.5.22None

Products include Astrbot Astrbot.

How do I fix CVE-2025-57698?

No fix has been published for CVE-2025-57698 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2025-57698 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-57698 exists.

Sources

Also known as GHSA-xrj9-mw57-j34v, PYSEC-2026-1198.

Is CVE-2025-57698 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free