# CVE-2025-57698: AstrBot contains a directory traversal vulnerability

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.83%, higher than 58% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-11-07T00:00:00.000Z
- Modified: 2026-11-05T14:10:00.273Z
- Also known as: GHSA-xrj9-mw57-j34v, PYSEC-2026-1198
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- astrbot (PyPI): up to 3.5.22
- astrbot astrbot: 3.5.22

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/DYX217/vulnerability-explore/blob/main/2/README.md> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-57698> (advisory)
- <https://github.com/AstrBotDevs/AstrBot> (package)
- <https://pypi.org/project/astrbot> (package)
- <https://github.com/advisories/GHSA-xrj9-mw57-j34v> (advisory)

## Sources

- CVE List: [CVE-2025-57698](https://www.cve.org/CVERecord?id=CVE-2025-57698), CVE Terms of Use, modified 2025-11-12
- GitHub Advisory Database: [GHSA-xrj9-mw57-j34v](https://github.com/advisories/GHSA-xrj9-mw57-j34v), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-57698](https://nvd.nist.gov/vuln/detail/CVE-2025-57698), Public domain, modified 2026-11-05
- PyPA Advisory Database: [PYSEC-2026-1198](https://osv.dev/vulnerability/PYSEC-2026-1198), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-57698 · Whole record: https://cve.day/CVE-2025-57698.json · Rebuilt by cve.day 2026-11-25T22:59:07.344Z
