Out-of-bounds Read in Astrbot

CVE-2025-57697

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.

Vulnerability class: Buffer Overflow

EPSS: 0.003 (24.2th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L.

Affected products

  • Astrbot — versions 3.5.22
  • N/a — versions n/a

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2025-57697?
CVE-2025-57697 is a medium-severity vulnerability in Astrbot, classified under Out-of-bounds Read. CVSS score: 6.5/10. Published 2025-11-07.
How severe is CVE-2025-57697?
Medium severity. CVSS v3 base score is 6.5 out of 10.