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

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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.