CVE-2022-35583
About
wkhtmlTOpdf 0.12.6 is vulnerable to SSRF which allows an attacker to get initial access into the target's system by injecting iframe tag with initial asset IP address on it's source. This allows the attacker to takeover the whole infrastructure by accessing their internal assets.
Rainforest analyst review
wkhtmltopdf renders HTML into PDFs, and this flaw lets attacker-controlled HTML, for example an injected iframe pointing at an internal IP, coerce the server doing the rendering into making requests it shouldn't. That is classic server-side request forgery: the PDF generator becomes a proxy for reaching internal assets, cloud metadata endpoints, and other services that trust traffic originating from inside the network.
The danger of SSRF is entirely about where the rendering server sits. Anywhere an application converts user-supplied content to a PDF, invoices, reports, resumes, this is a reachable, often unauthenticated entry point, and attackers use it to map and pivot into infrastructure that was never meant to be internet-adjacent. It is rarely the whole attack, but it is a frequent and reliable first hop.
The hard part for us is that wkhtmltopdf is a dependency, not a product, buried inside applications as a library or CLI invoked behind a feature. So this is a dependency-inventory problem: we need to find every service that shells out to or bundles wkhtmltopdf 0.12.6, then check whether any of them feed it user-controlled markup and whether the render host can reach anything sensitive. Egress restrictions on those hosts blunt the impact even before the component is replaced.
References
Related CVEs
Frequently asked questions
What is CVE-2022-35583?
wkhtmlTOpdf 0.12.6 is vulnerable to SSRF which allows an attacker to get initial access into the target's system by injecting iframe tag with initial asset IP address on it's source. This allows the attacker to takeover the whole infrastructure by accessing their internal assets.
How severe is CVE-2022-35583?
CVE-2022-35583 carries a CVSS 3.1 base score of 9.8, rated critical. On the Rainforest Risk Index — which weighs the severity alongside how easy the flaw is to reach and how broad its impact is — it scores 99 out of 100, in the critical band.
How is CVE-2022-35583 exploited?
According to the CVSS vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H): attack vector Network, attack complexity Low, privileges required None, user interaction None. Impact on confidentiality High, integrity High and availability High.
Which products are affected by CVE-2022-35583?
Public advisories list the following as affected: wkhtmltopdf. Check the references on this page for the exact versions each vendor confirms.
How do I fix CVE-2022-35583?
Apply the fix the vendor published — the references on this page link to the primary advisories and patches. When patching can't happen right away, reduce the exposure of the affected component and watch it for exploitation attempts. Rainforest customers see this vulnerability correlated to their own assets and prioritized by real exposure, not by score alone.
Empower Your Security Strategy with Rainforest
Discover vulnerabilities early, prioritize critical threats, and protect what truly matters. Rainforest streamlines your security operations, saving you time and reducing costs, so you can focus on what drives your business forward.
