CVE-2025-57697
MEDIUM 6.5CVSS 3.1AstrBot has an arbitrary file read vulnerability in function _encode_image_bs64
AstrBot Project v3.5.22 has an arbitrary file read vulnerability in function _encode_image_bs64. Since the _encode_image_bs64 function defined in entities.py opens the image specified by the user in the request body and returns the image content as a base64-encoded string without checking the legitimacy of the image path, attackers can construct a series of malicious URLs to read any specified file, resulting in sensitive data leakage.
- Published
- 7 Nov 2025
- Last modified
- 5 Nov 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-125CWE-22
- Also known as
- GHSA-vm2f-46xc-5jc3PYSEC-2026-1197
- Sources
- NVDJSONOSV GHSA-vm2f-46xc-5jc3JSONOSV PYSEC-2026-1197JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P | |
| OSV | PyPA | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:P | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | astrbot | astrbotcpe:2.3:a:astrbot:astrbot:3.5.22:*:*:*:*:*:*:* |
= 3.5.22 | |
| OSV | PyPI | astrbot | <= 3.5.22 |
References
- https://github.com/DYX217/vulnerability-explore/blob/main/1/README.md · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-57697 · ADVISORY
- https://github.com/AstrBotDevs/AstrBot · PACKAGE
- https://pypi.org/project/astrbot · PACKAGE
- https://github.com/advisories/GHSA-vm2f-46xc-5jc3 · ADVISORY
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 7 Nov 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Nov 2025)