Path Traversal in Wkhtmltopdf
CVE-2020-21365
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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS 0.023, 83.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Wkhtmltopdf
- Debian Linux — versions 10.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
3 public repositories with exploit or proof-of-concept code for this CVE:
- andrei2308/CVE-2020-21365-PoC (1 star, last pushed 2025-08-01): PoC for directory traversal and exposure on wkhtmltopdf 12.0.5
- samaellovecraft/CVE-2020-21365 (1 star, last pushed 2025-06-21)
- andrei2308/CVE-2020-21365 (last pushed 2025-08-01)
Also mentioned in 3 other repositories (Live-Hack-CVE/CVE-2020-21365, plzheheplztrying/cve_monitor, PuddinCat/GithubRepoSpider). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/wkhtmltopdf/wkhtmltopdf/issues/4536 (Exploit, Third Party Advisory, Issue Tracking)
- [debian-lts-announce] 20221024 [SECURITY] [DLA 3158-1] wkhtmltopdf security update (mailing-list, Mailing List, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.