{"id":"CVE-2025-57697","aliases":["EUVD-2025-38261","GHSA-vm2f-46xc-5jc3","PYSEC-2026-1197"],"status":"published","title":"AstrBot has an arbitrary file read vulnerability in function _encode_image_bs64","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.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","level":"medium","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-09","score":0.0034,"percentile":0.27726,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-125","CWE-22"],"published":"2025-11-07T00:00:00Z","modified":"2026-11-05T14:10:00Z","affected":[{"source":"ghsa","ecosystem":"PyPI","package":"astrbot","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.5.22"}]}]},{"source":"osv","ecosystem":"PyPI","package":"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"]},{"source":"osv","ecosystem":"PyPI","package":"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"]}],"products":[{"vendor":"astrbot","product":"astrbot"}],"references":[{"url":"https://github.com/DYX217/vulnerability-explore/blob/main/1/README.md","tags":["Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57697","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-vm2f-46xc-5jc3","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57697.json","tags":["advisory"]},{"url":"https://github.com/AstrBotDevs/AstrBot","tags":["package"]},{"url":"https://pypi.org/project/astrbot","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2025-57697","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.","status":"published","published":"2025-11-07T00:00:00Z","modified":"2025-11-12T17:14:18.49Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","level":"medium","assessor":"adp"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:32:34.773122Z"}],"euvd":[{"id":"EUVD-2025-38261","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.","status":"published","published":"2025-11-07T00:00:00Z","modified":"2025-11-12T17:14:18Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","level":"medium"}],"updated_at":"2026-11-02T19:49:18.397537Z"}],"ghsa":[{"id":"GHSA-vm2f-46xc-5jc3","title":"AstrBot has an arbitrary file read vulnerability in function _encode_image_bs64","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.","status":"published","published":"2025-11-07T18:30:31Z","modified":"2025-11-15T03:12:42Z","cvss":[{"version":"4.0","score":5.7,"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","level":"medium"}],"cwes":["CWE-22","CWE-125"],"updated_at":"2026-11-02T14:39:08.983925Z"}],"nvd":[{"id":"CVE-2025-57697","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.","status":"published","published":"2025-11-07T18:15:36.2Z","modified":"2026-11-05T14:10:00.273Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","level":"medium","assessor":"secondary"}],"cwes":["CWE-125"],"updated_at":"2026-11-05T19:55:51.56159Z"}],"osv":[{"id":"CVE-2025-57697","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.","status":"published","published":"2025-11-07T00:00:00Z","modified":"2026-11-07T02:30:53.812220763Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","level":"medium"}],"updated_at":"2026-11-07T03:07:57.67871Z"},{"id":"GHSA-vm2f-46xc-5jc3","title":"AstrBot has an arbitrary file read vulnerability in function _encode_image_bs64","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.","status":"published","published":"2025-11-07T18:30:31Z","modified":"2026-07-07T17:57:32.901111824Z","cvss":[{"version":"4.0","score":5.7,"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","level":"medium"}],"cwes":["CWE-125","CWE-22"],"updated_at":"2026-11-02T15:46:57.348035Z"},{"id":"PYSEC-2026-1197","title":"AstrBot has an arbitrary file read vulnerability in function _encode_image_bs64","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.","status":"published","published":"2026-07-07T16:03:09.964955Z","modified":"2026-07-07T17:46:22.6238747Z","cvss":[{"version":"4.0","score":5.7,"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","level":"medium"}],"updated_at":"2026-11-02T15:52:54.622769Z"}]}}
