{"answers":{"affected":"3 open source packages ship an affected version, including astrbot and AstrBot. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-57698 exists.","fix":"No fix has been published for CVE-2025-57698 yet. Limit exposure of the affected software until one is available.","what":"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."},"fix_prompt":"Check this codebase for CVE-2025-57698 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-57698 exists.\n\nAffected packages and fixed versions:\n- astrbot (PyPI): affected all versions up to 3.5.22; no fix listed\n- astrbot (PyPI): affected all versions up to 3.5.22; no fix listed\n- AstrBot (PyPI): affected all versions up to 3.5.22; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-57698/ (Markdown: https://insights.sbomify.com/CVE-2025-57698/index.md)","id":"CVE-2025-57698","markdown":"https://insights.sbomify.com/CVE-2025-57698/index.md","name":"CVE-2025-57698","record":{"aliases":["GHSA-xrj9-mw57-j34v","PYSEC-2026-1198"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"AstrBot chatbot framework","requires_auth":"none","summary":"Attackers can upload malicious files to arbitrary locations via directory traversal in the plugin installation endpoint, potentially leading to code execution.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"astrbot","vendor":"astrbot"}],"cvss":{"score":7.5,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"AstrBot contains a directory traversal vulnerability","id":"CVE-2025-57698","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":3,"n_references":1,"next":{"headline":"Privilege escalation in Western Digital Kitfox for Windows","id":"CVE-2025-57699"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["3.5.22"],"package":"AstrBot","purl":null,"source":"GHSA-xrj9-mw57-j34v"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["3.5.22"],"package":"astrbot","purl":"pkg:pypi/astrbot","source":"GHSA-xrj9-mw57-j34v"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["3.5.22"],"package":"astrbot","purl":"pkg:pypi/astrbot","source":"PYSEC-2026-1198"}],"prev":{"headline":"AstrBot has an arbitrary file read vulnerability in function _encode_image_bs64","id":"CVE-2025-57697"},"products":["n/a"],"published":"2025-11-07","related":[{"cvss_score":7.5,"headline":"AstrBot Has Path Traversal Vulnerability in /api/chat/get_file","id":"CVE-2025-48957","kev_date_added":null,"published":"2025-06-02"},{"cvss_score":7.3,"headline":"AstrBot is vulnerable to RCE with hard-coded JWT signing keys","id":"CVE-2025-55449","kev_date_added":null,"published":"2026-05-08"},{"cvss_score":6.5,"headline":"AstrBot has an arbitrary file read vulnerability in function _encode_image_bs64","id":"CVE-2025-57697","kev_date_added":null,"published":"2025-11-07"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-12","vendors":["n/a"]},"summary":"Attackers can upload malicious files to arbitrary locations via directory traversal in the plugin installation endpoint, potentially leading to code execution.","url":"https://insights.sbomify.com/CVE-2025-57698/"}