CVEfocus › CVE database › CVE-2025-64512

CVE-2025-64512pdfminer.six vulnerable to Arbitrary Code Execution via Crafted PDF Input

CVSS 8.6 HighEPSS 0.7% (higher than 50% of CVEs)Published 2025-11-10Updated 2026-01-08Assigner: GitHub_M

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.

CWE-502

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
5Fix pending
1Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04pdfminerNot affected
vulnerable_code_not_present
Ubuntu 25.10pdfminerWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2025-64512
Ubuntu 24.04pdfminerFix pending20221105+dfsg-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-64512
Ubuntu 22.04pdfminerFix pending20220319+dfsg-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-64512
Ubuntu 20.04pdfminerFix pending20191020+dfsg-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-64512
Ubuntu 18.04pdfminerFix pending20140328+dfsg-1ubuntu0.18.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-64512
Ubuntu 16.04pdfminerFix pending20140328+dfsg-1ubuntu0.16.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-64512
Debian 14pdfminerFixed20221105+dfsg-1.1DEBIAN-CVE-2025-64512
Debian 13pdfminerFixed20221105+dfsg-1.1~deb13u1DEBIAN-CVE-2025-64512
Debian 12pdfminerFixed20221105+dfsg-1.1~deb12u1DEBIAN-CVE-2025-64512
PyPI librarypdfminer-sixFixed20251107PYSEC-2026-1762

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.