CVE-2020-21365 json
Directory traversal vulnerability in wkhtmltopdf through 0.12.5 allows remote attackers to read local files and disclose sensitive informat…
published 2022-08-15 4 y ago modified 2026-06-17 4 mo ago also EUVD-2020-14137
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.3%
- EPSS 2.3% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- wkhtmltopdf Debian 12 0.12.6-1
debian advisories DEBIAN-CVE-2020-21365
- wkhtmltopdf Ubuntu 20.04 LTS 0.12.5-1ubuntu0.1
- wkhtmltopdf Ubuntu Pro 14.04 LTS 0.9.9-4ubuntu0.1~esm1
- wkhtmltopdf Ubuntu Pro 16.04 LTS 0.12.2.4-1ubuntu0.1~esm1
- wkhtmltopdf Ubuntu Pro 18.04 LTS 0.12.4-1ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2020-21365
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-21365 updated cvss 7.5
wkhtmltopdf: same origin policy allows local files to be read by default
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.32% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/wkhtmltopdf/wkhtmltopdf/issues/4536 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/wkhtmltopdf/wkhtmltopdf/issues/4536
exploit, issue-tracking, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2022/10/msg00027.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2020-21365
- NVD CVE-2020-21365
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.