# CVE-2025-57697: PYSEC-2026-1197 - AstrBot has an arbitrary file read vulnerability in function _encode_image_bs64

Source: https://junglewise.ai/threats/cve-2025-57697-astrbot-has-an-arbitrary-file-read-vulnerability-in-function  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-11-07  
License: CC BY 4.0 with a link back

CVE-2025-57697 · Severity: medium · CVSS 6.5 · Published 2025-11-07

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.

Technologies: [astrbot (PyPI)](https://junglewise.ai/threats/technologies/astrbot). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2025-57697 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-57697 being exploited in the wild.

**How severe is CVE-2025-57697?** Medium severity, with a CVSS score of 6.5, published 7 November 2025.

**Which products and versions are affected?** astrbot (PyPI) ECOSYSTEM:introduced=0,last_affected=3.5.22.

**Is there a fix for CVE-2025-57697?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**Am I affected by CVE-2025-57697?** Check whether you run Astrbot or astrbot (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- Astrbot
- astrbot (PyPI) ECOSYSTEM:introduced=0,last_affected=3.5.22

## Identifiers

- CVE-2025-57697
- GHSA-vm2f-46xc-5jc3
- PYSEC-2026-1197

## Related threats

- [PYSEC-2026-1196 - AstrBot Has Path Traversal Vulnerability in /api/chat/get_file](https://junglewise.ai/threats/cve-2025-48957-astrbot-has-path-traversal-vulnerability-in-api-chat-get-file)
- [AstrBotDevs AstrBot authorization bypass via delimiter injection in session_id](https://junglewise.ai/threats/cve-2026-10212-astrbotdevs-astrbot-authorization-bypass-via-delimiter-injection)
- [AstrBotDevs AstrBot path traversal in file upload handler](https://junglewise.ai/threats/cve-2026-8754-astrbotdevs-astrbot-path-traversal-in-file-upload-handler)
- [AstrBotDevs AstrBot hardcoded JWT secret key](https://junglewise.ai/threats/cve-2025-55449-astrbot-hard-coded-jwt-key-authentication-bypass-and-rce)
- [PYSEC-2026-2382 - AstrBot Makes Use of Hard-coded Password](https://junglewise.ai/threats/cve-2026-7579-astrbot-makes-use-of-hard-coded-password)
