pdfminer.six vulnerable to Arbitrary Code Execution via Crafted PDF Input
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-502.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| pdfminer | pdfminer.six | before 20251107 | 20251107 | Patch available | CNA |
| — | pdfminer.six (PyPI) | before 20251107 | 20251107 | Patch available | GHSA-wf5f-4jwr-ppcp |
- pdfminer.six Vendorpdfminer Affected before 20251107 Fixed in 20251107 Patch available CNA
- pdfminer.six (PyPI) Vendor— Affected before 20251107 Fixed in 20251107 Patch available GHSA-wf5f-4jwr-ppcp
Remediation
- Fix · CNA pdfminer.six (pdfminer) Fixed in 20251107
- Fix · GHSA-wf5f-4jwr-ppcp pdfminer.six (PyPI) Fixed in 20251107 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2025-64512
- 2026-10-03 Alias added: GHSA-wf5f-4jwr-ppcp
References
Sources
- CVE-2025-64512 · CVE Program
- CVE-2025-64512 · NVD
- FIRST EPSS
- GHSA-wf5f-4jwr-ppcp · GitHub Advisory Database · CC BY 4.0
- CVE-2025-64512 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences