{"id":"CVE-2025-57698","aliases":["CVE-2025-57698","GHSA-xrj9-mw57-j34v","PYSEC-2026-1198"],"related":[],"kind":"vulnerability","state":"published","title":"AstrBot contains a directory traversal vulnerability","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"AstrBot Project v3.5.22 contiene una vulnerabilidad de salto de directorio. La función gestora install_plugin_upload de la interfaz ’/plugin/install-upload’ analiza el nombre de archivo del cuerpo de la solicitud proporcionado por el usuario, y utiliza directamente el nombre de archivo para asignarlo a file_path sin verificar la validez del nombre de archivo. La variable file_path se pasa luego como parámetro a la función ’file.save’, de modo que el archivo en el cuerpo de la solicitud pueda guardarse en cualquier ubicación en el sistema de archivos mediante salto de directorio.","source":"nvd"}],"published":"2025-11-07T00:00:00.000Z","modified":"2026-11-05T14:10:00.273Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"3.5.22"}],"ecosystem":"PyPI","package":"astrbot","purl":"pkg:pypi/astrbot","source":"ghsa"},{"ranges":[{"status":"affected","version":"3.5.22"}],"vendor":"astrbot","product":"astrbot","cpe":"cpe:2.3:a:astrbot:astrbot:3.5.22:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"3.5.22"}],"ecosystem":"PyPI","package":"astrbot","purl":"pkg:pypi/astrbot","source":"pysec"}],"references":[{"url":"https://github.com/DYX217/vulnerability-explore/blob/main/2/README.md","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57698","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/AstrBotDevs/AstrBot","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/astrbot","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-xrj9-mw57-j34v","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-11-12T17:08:07.296Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-57698","url":"https://www.cve.org/CVERecord?id=CVE-2025-57698","licence":"CVE Terms of Use","modified":"2025-11-12T17:08:41.159Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xrj9-mw57-j34v","url":"https://github.com/advisories/GHSA-xrj9-mw57-j34v","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:25.025Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-57698","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57698","licence":"Public domain","modified":"2026-11-05T14:10:00.273Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1198","url":"https://osv.dev/vulnerability/PYSEC-2026-1198","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:22.675Z"}],"updatedAt":"2026-11-25T22:59:07.344Z","epss":{"score":0.00834,"percentile":0.58782,"date":"2026-12-01T12:00:22.000Z"}}