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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 12 | wkhtmltopdf | 0.12.6-1 | — |
| Debian 10 | wkhtmltopdf | 0.12.5-1+deb10u1 | DLA-3158-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | wkhtmltopdf | 0.12.5-1ubuntu0.1 | USN-6232-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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.
GitHub 1 repository
-
samaellovecraft/CVE-2020-21365 ★ 1 · Jun 21, 2025
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- USN-6232-1 wkhtmltopdf vulnerability Ubuntu Security Notices (USN) · Jun 29, 2026
- DLA-3158-1 wkhtmltopdf - security update Debian Security (DSA / DLA) · Mar 9, 2026