Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| datalab-to / surya | affected 0 through 0.22.1 |
CWE
CWE-73
References
- https://github.com/datalab-to/surya/issues/518
- https://github.com/datalab-to/surya
- https://github.com/datalab-to/surya/blob/v0.22.1/surya/scripts/screenshot_app.py
- https://www.vulncheck.com/advisories/surya-0.22.1-unauthenticated-arbitrary-file-read-via-screenshot-server
ADP enrichment
No English description supplied.
No references supplied.