Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-57697
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 01:45 UTC · Revision 1
Source evidence
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.
osv:CVE-2025-57697
Complete source record
{
"id": "f2bb0127ccc747a81dea0bbdac4607055297782e177ce93feef7be5c23d0c1fb",
"url": "https://osv.dev/vulnerability/CVE-2025-57697",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2025-57697",
"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.",
"evidence": "osv:CVE-2025-57697",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2025-57697",
"aliases": [
"CVE-2025-57697",
"GHSA-vm2f-46xc-5jc3",
"PYSEC-2026-1197"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/astrbotdevs/astrbot",
"type": "GIT",
"events": [
{
"introduced": "2915fdf665a1c0f7a7ecc4caa9bbd6988dfd63ab"
},
{
"last_affected": "2915fdf665a1c0f7a7ecc4caa9bbd6988dfd63ab"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:astrbot:astrbot:3.5.22:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.5.22"
},
{
"last_affected": "3.5.22"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"3.5.22",
"v3.5.22"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-57697.json"
}
}
],
"modified": "2026-10-28T02:30:41.426875226Z",
"provider": "osv",
"references": [
"https://github.com/DYX217/vulnerability-explore/blob/main/1/README.md",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57697.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-57697"
],
"provider_metadata": {
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57697.json"
}
},
"related_cves": [
{
"value": "CVE-2025-57697",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 509189,
"published_at": "2025-11-07T00:00:00+00:00"
}