Skip to main content
CVE-2025-64512VulnerabilityPublished Updated

CVE-2025-64512: pdfminer.six · Deserialization of Untrusted Data

Affects pdfminer.sixSource CVE Database V5

0

Not known to be exploited · CVSS 8.6 High : upgrade to 20251107 soon.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
8.6High
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Nov 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
PyPIpdfminer-sixpkg:pypi/pdfminer-sixOther threatsAffected
  • <20251107
Fixed in
  • 20251107

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

Community reviews

Loading reviews…