CVE-2025-48957: AstrBot Has Path Traversal Vulnerability in /api/chat/get_file

Published Jun 2, 2025
·
Updated

Impact

This vulnerability may lead to:

Information disclosure, such as API keys for LLM providers, account passwords, and other sensitive data.

Reproduce

Follow these steps to set up a test environment for reproducing the vulnerability:

1. Install dependencies and clone the repository:

bash pip install uv git clone https://github.com/AstrBotDevs/AstrBot && cd AstrBot uv run main.py

2. Alternatively, deploy the program via pip:

bash mkdir astrbot && cd astrbot uvx astrbot init uvx astrbot run

3. In another terminal, run the following command to exploit the vulnerability:

bash curl -L http://0.0.0.0:6185/api/chat/getfile?filename=../../../data/cmdconfig.json

This request will read the cmdconfig.json config file, leading to the leakage of sensitive data such as LLM API keys, usernames, and password hashes (MD5).

Patches

The vulnerability has been addressed in Pull Request #1676 and is included in versions >= v3.5.13. All users are strongly encouraged to upgrade to v3.5.13 or later.

Workarounds Users can edit the cmdconfig.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.

References

Pull Request #1676 Issue #1675

Other sources

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

MITRE

Affected Software

3 affected componentsFixes available
AstrBot Astrbot>=3.4.4<=3.5.12
pip/astrbot>=3.4.4<=3.5.12
3.5.13
AstrBot Astrbot>=3.4.4<3.5.13

Event History

Jun 2, 2025
CVE Published
via MITRE·11:16 AM
Data Sourced
via MITRE·11:16 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·12:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jun 4, 2025
Advisory Published
via GitHub·11:54 PM
Data Sourced
via GitHub·11:54 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-48957?

The severity of CVE-2025-48957 is classified as high due to potential information disclosure.

2

How do I fix CVE-2025-48957?

To fix CVE-2025-48957, update AstrBot to a version later than 3.5.12.

3

What types of data could be exposed by CVE-2025-48957?

CVE-2025-48957 may expose sensitive data such as API keys, account passwords, and other confidential information.

4

Which versions of AstrBot are affected by CVE-2025-48957?

AstrBot versions 3.4.4 through 3.5.12 are affected by CVE-2025-48957.

5

Is CVE-2025-48957 a known vulnerability?

Yes, CVE-2025-48957 is a documented vulnerability that has been identified in the AstrBot framework.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203