PYSEC-2026-1198
Vulnerability from pysec - Published: 2026-07-07 16:03 - Updated: 2026-07-07 17:23
VLAI
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
Impacted products
| Name | purl | astrbot | pkg:pypi/astrbot |
|---|
Aliases
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "astrbot",
"purl": "pkg:pypi/astrbot"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "3.5.22"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.4.39",
"3.5.10",
"3.5.11",
"3.5.12",
"3.5.13",
"3.5.14",
"3.5.15",
"3.5.17",
"3.5.18",
"3.5.19",
"3.5.20",
"3.5.21",
"3.5.22",
"3.5.6",
"3.5.7",
"3.5.8",
"3.5.9"
]
}
],
"aliases": [
"CVE-2025-57698",
"GHSA-xrj9-mw57-j34v"
],
"details": "AstrBot Project v3.5.22 contains a directory traversal vulnerability. The handler function install_plugin_upload of the interface \u0027/plugin/install-upload\u0027 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.",
"id": "PYSEC-2026-1198",
"modified": "2026-07-07T17:23:47.766320Z",
"published": "2026-07-07T16:03:09.885967Z",
"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"
},
{
"type": "PACKAGE",
"url": "https://pypi.org/project/astrbot"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-xrj9-mw57-j34v"
}
],
"severity": [
{
"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",
"type": "CVSS_V4"
}
],
"summary": "AstrBot contains a directory traversal vulnerability"
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…