{"id":"GHSA-vm2f-46xc-5jc3","summary":"AstrBot has an arbitrary file read vulnerability in function _encode_image_bs64","details":"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.","aliases":["CVE-2025-57697","PYSEC-2026-1197"],"modified":"2026-07-07T17:57:32.901111824Z","published":"2025-11-07T18:30:31Z","database_specific":{"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2025-11-07T20:50:54Z","nvd_published_at":"2025-11-07T18:15:36Z","cwe_ids":["CWE-125","CWE-22"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57697"},{"type":"PACKAGE","url":"https://github.com/AstrBotDevs/AstrBot"},{"type":"WEB","url":"https://github.com/DYX217/vulnerability-explore/blob/main/1/README.md"}],"affected":[{"package":{"name":"astrbot","ecosystem":"PyPI","purl":"pkg:pypi/astrbot"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.5.22"}]}],"versions":["3.4.39","3.5.10","3.5.11","3.5.12","3.5.13","3.5.14","3.5.15","3.5.17","3.5.18","3.5.19","3.5.20","3.5.21","3.5.22","3.5.6","3.5.7","3.5.8","3.5.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/11/GHSA-vm2f-46xc-5jc3/GHSA-vm2f-46xc-5jc3.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}