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

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-11-07T00:00:00.000Z
- Modified: 2026-11-05T14:10:00.273Z
- Also known as: GHSA-vm2f-46xc-5jc3, PYSEC-2026-1197
- Weaknesses: CWE-22, CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- astrbot (PyPI): up to 3.5.22
- astrbot astrbot: 3.5.22

## Every score

- CISA-ADP: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- GitHub: CVSS:4.0 Medium `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`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/DYX217/vulnerability-explore/blob/main/1/README.md> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-57697> (advisory)
- <https://github.com/AstrBotDevs/AstrBot> (package)
- <https://pypi.org/project/astrbot> (package)
- <https://github.com/advisories/GHSA-vm2f-46xc-5jc3> (advisory)

## Sources

- CVE List: [CVE-2025-57697](https://www.cve.org/CVERecord?id=CVE-2025-57697), CVE Terms of Use, modified 2025-11-12
- GitHub Advisory Database: [GHSA-vm2f-46xc-5jc3](https://github.com/advisories/GHSA-vm2f-46xc-5jc3), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-57697](https://nvd.nist.gov/vuln/detail/CVE-2025-57697), Public domain, modified 2026-11-05
- PyPA Advisory Database: [PYSEC-2026-1197](https://osv.dev/vulnerability/PYSEC-2026-1197), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-57697 · Whole record: https://cve.day/CVE-2025-57697.json · Rebuilt by cve.day 2026-11-25T22:59:07.346Z
