CVE-2025-57698: AstrBot Path Traversal Vulnerability
HIGHCVE-2025-57698 is a HIGH path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting AstrBot libraries in the PyPI ecosystem. The issue involves astrbot contains a directory traversal vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2025-57698 at a Glance
How to Fix CVE-2025-57698
To remediate this vulnerability, upgrade all affected AstrBot dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install AstrBot>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show AstrBot
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-57698, inspect your installed packages using pip:
pip show AstrBot
Analyze the terminal output to locate any version of AstrBot in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show AstrBot command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In AstrBot, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-57698 Affected AstrBot Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
AstrBot
|
PyPI |
≤ 3.5.22
|
|
References
Frequently Asked Questions
What is CVE-2025-57698?
Which AstrBot versions are affected?
What version fixes CVE-2025-57698?
Is AstrBot affected?
What CWE is associated with CVE-2025-57698?
How can I check PyPI dependencies for CVE-2025-57698?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xrj9-mw57-j34v",
"modified" : "2025-11-07T20:49:17Z",
"published" : "2025-11-07T18:30:30Z",
"aliases" : [ "CVE-2025-57698" ],
"summary" : "AstrBot contains a directory traversal vulnerability",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "AstrBot"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "3.5.22"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-57698"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/AstrBotDevs/AstrBot"
}, {
"type" : "WEB",
"url" : "https://github.com/DYX217/vulnerability-explore/blob/main/2/README.md"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-11-07T20:49:17Z",
"nvd_published_at" : "2025-11-07T17:15:47Z"
}
}