{"id":"CVE-2025-57697","aliases":["CVE-2025-57697","GHSA-vm2f-46xc-5jc3","PYSEC-2026-1197"],"related":[],"kind":"vulnerability","state":"published","title":"AstrBot has an arbitrary file read vulnerability in function _encode_image_bs64","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"El Proyecto AstrBot v3.5.22 tiene una vulnerabilidad de lectura arbitraria de archivos en la función _encode_image_bs64. Dado que la función _encode_image_bs64 definida en entities.py abre la imagen especificada por el usuario en el cuerpo de la solicitud y devuelve el contenido de la imagen como una cadena codificada en base64 sin verificar la legitimidad de la ruta de la imagen, los atacantes pueden construir una serie de URLs maliciosas para leer cualquier archivo especificado, lo que resulta en una fuga de datos sensibles.","source":"nvd"}],"published":"2025-11-07T00:00:00.000Z","modified":"2026-11-05T14:10:00.273Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","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"}],"cwes":["CWE-22","CWE-125"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"3.5.22"}],"ecosystem":"PyPI","package":"astrbot","purl":"pkg:pypi/astrbot","source":"ghsa"},{"ranges":[{"status":"affected","version":"3.5.22"}],"vendor":"astrbot","product":"astrbot","cpe":"cpe:2.3:a:astrbot:astrbot:3.5.22:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"3.5.22"}],"ecosystem":"PyPI","package":"astrbot","purl":"pkg:pypi/astrbot","source":"pysec"}],"references":[{"url":"https://github.com/DYX217/vulnerability-explore/blob/main/1/README.md","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57697","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/AstrBotDevs/AstrBot","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/astrbot","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-vm2f-46xc-5jc3","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-11-12T17:13:02.370Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-57697","url":"https://www.cve.org/CVERecord?id=CVE-2025-57697","licence":"CVE Terms of Use","modified":"2025-11-12T17:14:18.490Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vm2f-46xc-5jc3","url":"https://github.com/advisories/GHSA-vm2f-46xc-5jc3","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:32.901Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-57697","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-57697","licence":"Public domain","modified":"2026-11-05T14:10:00.273Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1197","url":"https://osv.dev/vulnerability/PYSEC-2026-1197","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:22.623Z"}],"updatedAt":"2026-11-25T22:59:07.346Z","epss":{"score":0.0034,"percentile":0.29467,"date":"2026-12-02T12:00:21.000Z"}}