CVE-2025-64512pdfminer.six vulnerable to Arbitrary Code Execution via Crafted PDF Input
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | pdfminer | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | pdfminer | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-64512 | |
| Ubuntu 24.04 | pdfminer | Fix pending | 20221105+dfsg-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-64512 |
| Ubuntu 22.04 | pdfminer | Fix pending | 20220319+dfsg-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-64512 |
| Ubuntu 20.04 | pdfminer | Fix pending | 20191020+dfsg-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-64512 |
| Ubuntu 18.04 | pdfminer | Fix pending | 20140328+dfsg-1ubuntu0.18.04.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-64512 |
| Ubuntu 16.04 | pdfminer | Fix pending | 20140328+dfsg-1ubuntu0.16.04.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2025-64512 |
| Debian 14 | pdfminer | Fixed | 20221105+dfsg-1.1 | DEBIAN-CVE-2025-64512 |
| Debian 13 | pdfminer | Fixed | 20221105+dfsg-1.1~deb13u1 | DEBIAN-CVE-2025-64512 |
| Debian 12 | pdfminer | Fixed | 20221105+dfsg-1.1~deb12u1 | DEBIAN-CVE-2025-64512 |
| PyPI library | pdfminer-six | Fixed | 20251107 | PYSEC-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.
- pdfminer.six: affected: < 20251107
References
- https://github.com/pdfminer/pdfminer.six/security/advisories/GHSA-wf5f-4jwr-ppcp
- https://github.com/pdfminer/pdfminer.six/commit/b808ee05dd7f0c8ea8ec34bdf394d40e63501086
- https://github.com/pdfminer/pdfminer.six/releases/tag/20251107
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.