CVE-2025-64512: pdfminer.six · Deserialization of Untrusted Data
Affects pdfminer.sixSource CVE Database V5
Not known to be exploited · CVSS 8.6 High : upgrade to 20251107 soon.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 26% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 20251107
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 10 Nov 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Upgrade pdfminer-six to 20251107.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIpdfminer-sixpkg:pypi/pdfminer-sixOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
1. Upgrade all instances of pdfminer.six to version 20251107 or later, which contains the fix preventing untrusted pickle deserialization. 2. Implement strict input validation and restrict PDF processing to trusted sources only, minimizing exposure to malicious PDFs. 3. Employ sandboxing or containerization for PDF processing workflows to isolate potential code execution from critical systems. 4. Monitor and log PDF processing activities to detect anomalous behavior indicative of exploitation attempts. 5. Educate users about the risks of opening PDFs from untrusted or unknown sources to reduce the likelihood of social engineering attacks. 6. Review and audit any custom code or third-party tools that integrate pdfminer.six to ensure they do not override safe defaults or introduce insecure configurations. 7. Consider disabling or replacing pickle-based deserialization in custom workflows with safer alternatives if feasible.
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.
References
- github.com/pdfminer/pdfminer.six/security/advisories/GHSA-wf5f-4jwr-ppcp (opens in a new tab)
- github.com/pdfminer/pdfminer.six/commit/b808ee05dd7f0c8ea8ec34bdf394d40e63501086 (opens in a new tab)
- github.com/pdfminer/pdfminer.six/releases/tag/20251107 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/11/msg00017.html (opens in a new tab)
- lists.debian.org/debian-lts-announce/2026/01/msg00005.html (opens in a new tab)