CVE-2026-85687

surya 0.22.1 Unauthenticated Arbitrary File Read via screenshot server

Published Sep 4, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
surya 0.22.1 screenshot server contains an unauthenticated arbitrary file read vulnerability in the /info, /page, and /process routes that accept raw file_path parameters. Attackers can read any image or PDF file on the host by supplying arbitrary file paths to Image.open or pypdfium2.PdfDocument, obtaining rendered contents as base64 and using /info as an existence oracle.

Analysis

AI-generated

Technical impact

The Screenshot server in Surya 0.22.1 accepts a raw file_path parameter on the /info, /page, and /process endpoints. Through the use of Image.open or pypdfium2.PdfDocument, the supplied path is opened and the resultant rendered content is returned as Base64. This allows an attacker to read any image or PDF file stored on the host, without authentication and with no additional prerequisites. The flaw is a classic path traversal vulnerability (CWE‑73) and can expose sensitive files or configuration data, leading to a compromise of confidentiality.

Affected Systems

The vulnerability exists in Surya version 0.22.1, the screenshot service maintained by datalab-to. Any deployment of this version, regardless of platform, is affected. No other versions are listed as affected, but systems using 0.22.1 or lower should be considered at risk until patched.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity. EPSS is not available and the vulnerability is not listed in the CISA KEV catalog, but the flaw allows remote, unauthenticated access to arbitrary files. Attackers need only send HTTP requests to the vulnerable endpoints with a crafted file_path parameter, making exploitation straightforward with readily available tools or scripts. The lack of authentication or directory restrictions further lowers the effort required to read sensitive host files.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Surya to the latest release that fixes the path traversal error.
  • Configure the /info, /page, and /process endpoints to validate or whitelist file paths, ensuring only allowed directories or file types are accessed.
  • If immediate upgrade is not possible, disable or restrict these endpoints through firewall or web server rules, or enable authentication to prevent unauthenticated access.

Generated by OpenCVE AI on September 4, 2026 at 15:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Datalab-to
Datalab-to surya
Vendors & Products Datalab-to
Datalab-to surya
Type Values Removed Values Added
Description surya 0.22.1 screenshot server contains an unauthenticated arbitrary file read vulnerability in the /info, /page, and /process routes that accept raw file_path parameters. Attackers can read any image or PDF file on the host by supplying arbitrary file paths to Image.open or pypdfium2.PdfDocument, obtaining rendered contents as base64 and using /info as an existence oracle.
Title surya 0.22.1 Unauthenticated Arbitrary File Read via screenshot server
Weaknesses CWE-73
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-73

    External Control of File Name or Path

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 4, 2026, 5:45 PM
Reserved
Sep 4, 2026, 1:51 PM
Status
Deferred
Published
Sep 4, 2026, 3:17 PM
Modified
Sep 10, 2026, 3:53 PM