GitHub Advisoryadvisory · PyPI

GHSA-vm2f-46xc-5jc3 AstrBot has an arbitrary file read vulnerability in function _encode_image_bs64

MEDIUM Published 2025-11-07 Modified 2025-11-07 Official page ↗
Aliases
CVE-2025-57697
Ecosystem
PyPI
Packages
AstrBot
Severity
Moderate
CVSS vector
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
Weaknesses
CWE-125, CWE-22
Reviewed
2025-11-07

Affected packages

• PyPI AstrBot: <= 3.5.22 (no fix yet)

Description

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.

Related

Alias · CVE (1)

  • CVE-2025-57697 AstrBot Project v3.5.22 has an arbitrary file read vulnerability in function _encode_image_bs64. vulnerability

Weakness · CWE (2)

  • CWE-125 Out-of-bounds Read weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References