NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

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

mediumCVSS 4.0 5.7GHSA-vm2f-46xc-5jc3

AstrBot Project v3.5.22 has an arbitrary file read vulnerability in function encodeimagebs64. Since the encodeimagebs64 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…

Published Nov 7, 2025 · Updated Nov 15, 2025

Affected packages

AstrBot

Ecosystem
PyPI
Affected
<= 3.5.22
Fixed in
No patched version yet
Check
pip show AstrBot

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More PyPI vulnerabilities

All PyPI entries