{"id":"CVE-2025-48957","aliases":["CVE-2025-48957","GHSA-cq37-g2qp-3c2p","PYSEC-2026-1196"],"related":[],"kind":"vulnerability","state":"published","title":"AstrBot Has Path Traversal Vulnerability in /api/chat/get_file","summary":"AstrBot is a large language model chatbot and development framework. A path traversal vulnerability present in versions 3.4.4 through 3.5.12 may lead to information disclosure, such as API keys for LLM providers, account passwords, and other sensitive data. The vulnerability has been addressed in Pull Request #1676 and is included in version 3.5.13. As a workaround, users can edit the `cmd_config.json` file to disable the dashboard feature as a temporary workaround. However, it is strongly recommended to upgrade to version v3.5.13 or later to fully resolve this issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"AstrBot is a large language model chatbot and development framework. A path traversal vulnerability present in versions 3.4.4 through 3.5.12 may lead to information disclosure, such as API keys for LLM providers, account passwords, and other sensitive data. The vulnerability has been addressed in Pull Request #1676 and is included in version 3.5.13. As a workaround, users can edit the `cmd_config.json` file to disable the dashboard feature as a temporary workaround. However, it is strongly recommended to upgrade to version v3.5.13 or later to fully resolve this issue.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThis vulnerability may lead to:\n\n* Information disclosure, such as API keys for LLM providers, account passwords, and other sensitive data.\n\n### Reproduce\n\nFollow these steps to set up a test environment for reproducing the vulnerability:\n\n1. Install dependencies and clone the repository:\n\n   ```bash\n   pip install uv\n   git clone https://github.com/AstrBotDevs/AstrBot && cd AstrBot\n   uv run main.py\n   ```\n\n2. Alternatively, deploy the program via pip:\n\n   ```bash\n   mkdir astrbot && cd astrbot\n   uvx astrbot init\n   uvx astrbot run\n   ```\n\n3. In another terminal, run the following command to exploit the vulnerability:\n\n   ```bash\n   curl -L http://0.0.0.0:6185/api/chat/get_file?filename=../../../data/cmd_config.json\n   ```\n\nThis request will read the `cmd_config.json` config file, leading to the leakage of sensitive data such as LLM API keys, usernames, and password hashes (MD5).\n\n### Patches\n\nThe vulnerability has been addressed in [Pull Request #1676](https://github.com/AstrBotDevs/AstrBot/pull/1676) and is included in versions >= v3.5.13. All users are strongly encouraged to upgrade to v3.5.13 or later.\n\n### Workarounds\nUsers can edit the cmd_config.json file to disable the dashboard feature as a temporary workaround. However, it is strongly recommended to upgrade to version v3.5.13 or later as soon as possible to fully resolve this issue.\n\n### References\n\n* [Pull Request #1676](https://github.com/AstrBotDevs/AstrBot/pull/1676)\n* [Issue #1675](https://github.com/AstrBotDevs/AstrBot/issues/1675)","format":"markdown","source":"ghsa"},{"lang":"es","text":"AstrBot es un chatbot de modelo de lenguaje de gran tamaño y un framework de desarrollo. Una vulnerabilidad de path traversal presente en las versiones 3.4.4 a 3.5.12 podría provocar la divulgación de información, como claves de API para proveedores de LLM, contraseñas de cuentas y otros datos confidenciales. Esta vulnerabilidad se ha solucionado en la solicitud de incorporación de cambios n.º 1676 y está incluida en la versión 3.5.13. Como workaround, los usuarios pueden editar el archivo `cmd_config.json` para desactivar la función del panel. Sin embargo, se recomienda encarecidamente actualizar a la versión 3.5.13 o posterior para resolver este problema por completo.","source":"nvd"}],"published":"2025-06-02T11:16:14.370Z","modified":"2026-09-10T03:50:25.264Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-22","CWE-23"],"affected":[{"ranges":[{"version":">= 3.4.4, < 3.5.13","status":"affected"}],"vendor":"AstrBotDevs","product":"AstrBot","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.4.4","status":"affected","fixed":"3.5.13"}],"ecosystem":"PyPI","package":"astrbot","purl":"pkg:pypi/astrbot","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.4.4","fixed":"3.5.13"}],"vendor":"astrbot","product":"astrbot","cpe":"cpe:2.3:a:astrbot:astrbot:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"3.4.4","status":"affected","fixed":"3.5.13"}],"ecosystem":"PyPI","package":"astrbot","purl":"pkg:pypi/astrbot","source":"pysec"}],"references":[{"url":"https://github.com/AstrBotDevs/AstrBot/security/advisories/GHSA-cq37-g2qp-3c2p","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/AstrBotDevs/AstrBot/issues/1675","tags":["exploit","issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/AstrBotDevs/AstrBot/pull/1676","tags":["exploit","issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/AstrBotDevs/AstrBot/commit/cceadf222c46813c7f41115b40d371e7eb91e492","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.vicarius.io/vsociety/posts/cve-2025-48957-detect-astrbot-dashboard-vulnerability?prevUrl=wizard","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://www.vicarius.io/vsociety/posts/cve-2025-48957-mitigate-astrbot-dashboard-vulnerability?prevUrl=wizard","tags":["mitigation","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48957","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-cq37-g2qp-3c2p","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-06-02T16:42:40.296Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-48957","url":"https://www.cve.org/CVERecord?id=CVE-2025-48957","licence":"CVE Terms of Use","modified":"2025-06-23T18:03:57.703Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cq37-g2qp-3c2p","url":"https://github.com/advisories/GHSA-cq37-g2qp-3c2p","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:25.264Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-48957","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48957","licence":"Public domain","modified":"2026-06-17T09:30:34.060Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1196","url":"https://osv.dev/vulnerability/PYSEC-2026-1196","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:22.631Z"}],"updatedAt":"2026-11-25T22:58:58.653Z","epss":{"score":0.00771,"percentile":0.56876,"date":"2026-12-01T12:00:22.000Z"}}