Skip to content

CVE-2025-57697 AstrBot has an arbitrary file read vulnerability in function _encode_image_bs64

MediumCVSS 6.5 EPSS 0.34%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
pypi astrbot(PyPI) <= 3.5.22; = 3.4.39; = 3.5.6; = 3.5.7 +14 more after 3.5.22 Fixed
astrbot = 3.5.22 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi astrbot(PyPI) <= 3.5.22 No fix listed
pypi astrbot(PyPI) = 3.4.39 No fix listed
pypi astrbot(PyPI) = 3.5.10 No fix listed
pypi astrbot(PyPI) = 3.5.11 No fix listed
pypi astrbot(PyPI) = 3.5.12 No fix listed
pypi astrbot(PyPI) = 3.5.13 No fix listed
pypi astrbot(PyPI) = 3.5.14 No fix listed
pypi astrbot(PyPI) = 3.5.15 No fix listed
pypi astrbot(PyPI) = 3.5.17 No fix listed
pypi astrbot(PyPI) = 3.5.18 No fix listed
pypi astrbot(PyPI) = 3.5.19 No fix listed
pypi astrbot(PyPI) = 3.5.20 No fix listed
pypi astrbot(PyPI) = 3.5.21 No fix listed
pypi astrbot(PyPI) = 3.5.22 No fix listed
pypi astrbot(PyPI) = 3.5.6 No fix listed
pypi astrbot(PyPI) = 3.5.7 No fix listed
pypi astrbot(PyPI) = 3.5.8 No fix listed
pypi astrbot(PyPI) = 3.5.9 No fix listed
astrbot = 3.5.22 No fix listed

References