CVE-2025-64512: pdfminer.six vulnerable to Arbitrary Code Execution via Crafted PDF Input
Vulnerability summary
CVE-2025-64512 is a high (CVSS 8.6) Deserialization of Untrusted Data vulnerability in debian debian_linux. EPSS estimates a 0.33% chance of exploitation in the next 30 days, higher than 28.6% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 10-11-2025PublishedVulnerability first disclosed.
- 08-01-2026Last modifiedVulnerability information updated.
Description
Pdfminer.six is a community maintained fork of the original PDFMiner, a tool for extracting information from PDF documents. Prior to version 20251107, pdfminer.six will execute arbitrary code from a malicious pickle file if provided with a malicious PDF file. The `CMapDB._load_data()` function in pdfminer.six uses `pickle.loads()` to deserialize pickle files. These pickle files are supposed to be part of the pdfminer.six distribution stored in the `cmap/` directory, but a malicious PDF can specify an alternative directory and filename as long as the filename ends in `.pickle.gz`. A malicious, zipped pickle file can then contain code which will automatically execute when the PDF is processed. Version 20251107 fixes the issue.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · PypiEcosystem advisory · calculated8.6HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
0.33%
Chance of exploitation in the next 30 days
Percentile
29%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.33% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundPdfminer.Six
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Debian2 products
- pdfminer< 20200726-1+deb11u1 | < 20221105+dfsg-1.1~deb12u1 | < 20221105+dfsg-1.1~deb13u1 | < 20221105+dfsg-1.1
- debian_linuxEOL11.0
Opensuse1 product
- python-pdfminer.six&distro=openSUSE Tumbleweed< 20251107-1.1
Pdfminer1 product
- pdfminer.six< 20251107 | < 2025-11-07
PyPI1 product
- pdfminer-six< 20251107
Ubuntu1 product
- pdfminer< 20140328+dfsg-1ubuntu0.16.04.1~esm1 | < 20140328+dfsg-1ubuntu0.18.04.1~esm1 | < 20191020+dfsg-2ubuntu0.1~esm1 | < 20220319+dfsg-1ubuntu0.1~esm1 | < 20221105+dfsg-1ubuntu0.1~esm1 | All versions (No fix recorded)
5 vendors · 6 products
References
14 links- github.com/pdfminer/pdfminer.six/security/advisories/GHSA-wf5f-4jwr-ppcpX Refsource CONFIRMWEBREPORTExploitVendor Advisory
- github.com/pdfminer/pdfminer.six/commit/b808ee05dd7f0c8ea8ec34bdf394d40e63501086X Refsource MISCWEBREPORTPatch