Description
PDFMathTranslate (pdf2zh) through 1.9.11 contains a server-side request forgery vulnerability that allows unauthenticated attackers to make the server fetch arbitrary URLs via the Link input. The translate_file handler passes user URLs to download_with_limit without scheme or address validation, letting attackers reach internal services and cloud metadata endpoints and retrieve returned PDFs.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| PDFMathTranslate | PDFMathTranslate | ≤ 1.9.11 | — |
References
- GitHub Issue #1188 issue-tracking
- https://github.com/PDFMathTranslate/PDFMathTranslate product
- https://github.com/PDFMathTranslate/PDFMathTranslate/blob/0f0618d3303d064d97e7adb77557b21236c6cee0/pdf2zh/gui.py#L149-L179 technical-description
- https://github.com/PDFMathTranslate/PDFMathTranslate/blob/0f0618d3303d064d97e7adb77557b21236c6cee0/pdf2zh/gui.py#L257-L269 technical-description
- VulnCheck Advisory: PDFMathTranslate through 1.9.11 SSRF via Gradio Web GUI Link Input third-party-advisory