Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-108554 Overview
CVE-2026-108554 is a Server-Side Request Forgery (SSRF) vulnerability in PDFMathTranslate (pdf2zh) through version 1.9.11. The flaw resides in the Gradio web GUI's Link input field, which accepts user-supplied URLs for PDF translation. The translate_file handler forwards these URLs to the download_with_limit function without validating the scheme or destination address. Unauthenticated attackers can coerce the server into fetching arbitrary internal or external URLs, including cloud instance metadata endpoints, and receive the returned content as a translated PDF. The vulnerability is classified under CWE-918: Server-Side Request Forgery.
Critical Impact
Unauthenticated attackers can reach internal services and cloud metadata endpoints through the exposed Gradio interface, enabling reconnaissance and sensitive data exfiltration.
Affected Products
- PDFMathTranslate (pdf2zh) versions through 1.9.11
- Deployments exposing the Gradio web GUI on reachable networks
- Cloud-hosted instances where the server has access to internal metadata services (AWS, Azure, GCP)
Discovery Timeline
- 2026-10-10 - CVE-2026-108554 published to the National Vulnerability Database
- 2026-10-16 - Last updated in NVD database
Technical Details for CVE-2026-108554
Vulnerability Analysis
PDFMathTranslate is an open-source tool that translates PDF documents while preserving mathematical formatting. It exposes a Gradio-based web GUI that accepts PDF file uploads or a URL via a Link input field. When a user supplies a URL, the application fetches the remote resource server-side, translates the content, and returns a PDF to the requester.
The vulnerable code path lives in pdf2zh/gui.py. The translate_file handler accepts the user-supplied Link value and passes it directly into download_with_limit without any scheme allowlist or destination address validation. As a result, the server performs an outbound HTTP request to any URL the attacker specifies and returns the fetched content to the attacker through the translation output.
Because the Gradio interface requires no authentication by default, any network-reachable attacker can trigger server-side requests. The impact is bounded to confidentiality of fetched content, but the attack surface includes internal HTTP services, administrative interfaces, and cloud metadata endpoints such as http://169.254.169.254/.
Root Cause
The root cause is missing input validation on URLs supplied through the Link input field. The translate_file handler, documented at lines 149-179 and 257-269 of pdf2zh/gui.py, does not enforce a scheme allowlist (for example, blocking file://, gopher://, or non-HTTP schemes). It also does not resolve and block private IP ranges, loopback addresses, link-local addresses, or cloud metadata IPs before dispatching the download. See the VulnCheck SSRF Advisory for PDFMathTranslate for the full advisory.
Attack Vector
An unauthenticated attacker submits a request to the Gradio GUI with the Link input set to an internal URL such as http://127.0.0.1:8080/admin or a cloud metadata endpoint like http://169.254.169.254/latest/meta-data/iam/security-credentials/. The PDFMathTranslate server retrieves the resource and returns the processed output back to the attacker, exposing content that would otherwise be unreachable from the public network. Reference the PDFMathTranslate GUI Code Section and Issue #1188 for the vulnerable logic.
Detection Methods for CVE-2026-108554
Indicators of Compromise
- Outbound HTTP requests from the PDFMathTranslate server to private IP ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) or loopback addresses.
- Server-initiated connections to cloud metadata endpoints such as 169.254.169.254 or metadata.google.internal.
- Gradio request logs containing Link input values pointing at internal hostnames, non-HTTP schemes, or IP literals.
- Unusual spikes in outbound traffic from the pdf2zh process to unexpected destinations.
Detection Strategies
- Inspect application logs for translate_file invocations where the Link parameter targets non-public addresses.
- Deploy egress filtering telemetry that flags any PDFMathTranslate host attempting to reach 169.254.169.254 or internal management ports.
- Correlate web access logs for the Gradio endpoint with downstream outbound DNS and HTTP activity to identify SSRF probing patterns.
Monitoring Recommendations
- Enable verbose request logging on the Gradio interface and forward logs to a centralized analytics pipeline for SSRF pattern matching.
- Monitor the hosting environment's cloud metadata service access logs where available (for example, IMDSv2 request counters on AWS).
- Alert on repeated requests to the /translate_file endpoint from a single source containing varied URL patterns, which is indicative of SSRF enumeration.
How to Mitigate CVE-2026-108554
Immediate Actions Required
- Restrict network access to the PDFMathTranslate Gradio interface using a firewall, reverse proxy authentication, or VPN segmentation.
- Disable the Link input feature if PDF URL fetching is not required for your workflow.
- On AWS deployments, enforce IMDSv2 and set a hop limit of 1 to block container-based SSRF retrieval of instance credentials.
- Rotate any cloud credentials or secrets reachable from the host if SSRF exploitation is suspected.
Patch Information
At the time of publication, no fixed release addressing CVE-2026-108554 has been identified in the NVD data. Monitor the PDFMathTranslate GitHub Repository and Issue #1188 for upstream remediation. Users running pdf2zh version 1.9.11 or earlier should treat the deployment as vulnerable until an upstream fix is released.
Workarounds
- Place the Gradio GUI behind an authenticating reverse proxy such as nginx with basic auth or OIDC enforcement.
- Implement an egress proxy that enforces a destination allowlist for the pdf2zh process, denying private, loopback, and link-local ranges.
- Patch the local deployment to validate URL schemes against an allowlist of http and https, and resolve hostnames before dispatch to block private IP space.
- Run the service inside a network namespace or container with no route to internal management networks or cloud metadata services.
# Example iptables egress restriction for the pdf2zh host
iptables -A OUTPUT -m owner --uid-owner pdf2zh -d 169.254.169.254 -j REJECT
iptables -A OUTPUT -m owner --uid-owner pdf2zh -d 10.0.0.0/8 -j REJECT
iptables -A OUTPUT -m owner --uid-owner pdf2zh -d 172.16.0.0/12 -j REJECT
iptables -A OUTPUT -m owner --uid-owner pdf2zh -d 192.168.0.0/16 -j REJECT
iptables -A OUTPUT -m owner --uid-owner pdf2zh -d 127.0.0.0/8 -j REJECT
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

