Skip to content
OpenAdvisories
Unscored Public exploit CVE-2020-21365 EUVD-2020-14137GHSA-36cg-hvm7-mhwp

Directory traversal vulnerability in wkhtmltopdf through 0.12.5 allows remote attackers to read local files and disclose sensitive informat…

Published Aug 15, 2022 · Updated Aug 4, 2024 · Assigned by mitre

Description

Directory traversal vulnerability in wkhtmltopdf through 0.12.5 allows remote attackers to read local files and disclose sensitive information via a crafted html file running with the default configurations.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 wkhtmltopdf 0.12.6-1 —
Debian 10 wkhtmltopdf 0.12.5-1+deb10u1 DLA-3158-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS wkhtmltopdf 0.12.5-1ubuntu0.1 USN-6232-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS wkhtmltopdf 0.12.4-1ubuntu0.1~esm1 USN-6232-1
Ubuntu Pro 16.04 LTS wkhtmltopdf 0.12.2.4-1ubuntu0.1~esm1 USN-6232-1
Ubuntu Pro 14.04 LTS wkhtmltopdf 0.9.9-4ubuntu0.1~esm1 USN-6232-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 2

References