CVE-2025-64512
published high CVSS 3.1 · 8.6pdfminer.six vulnerable to Arbitrary Code Execution via Crafted PDF Input
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pdfminer | — | pdfminer.six< 20251107 | Affected | Not stated | GitHub_M |
| Debian | bookworm | pdfminer | Advisory build | 20221105+dfsg-1.1~deb12u1 | DSA-6062-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-pdfminer.sixaarch64 | Advisory build | 20251107-1.1 | OPENSUSE-SU-2025:15727-1 |
| Ubuntu | bionic | pdfminer | Advisory build | 20140328+dfsg-1ubuntu0.18.04.1~esm1 | USN-8837-1 |
| Debian | bullseye | pdfminer | Advisory build | 20200726-1+deb11u1 | DLA-4374-1 |
| Debian | trixie | pdfminer | Advisory build | 20221105+dfsg-1.1~deb13u1 | DSA-6062-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-pdfminer.sixppc64le | Advisory build | 20251107-1.1 | OPENSUSE-SU-2025:15727-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-pdfminer.sixs390x | Advisory build | 20251107-1.1 | OPENSUSE-SU-2025:15727-1 |
Show 23 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-pdfminer.sixx86_64 | Advisory build | 20251107-1.1 | OPENSUSE-SU-2025:15727-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-pdfminer.sixaarch64 | Advisory build | 20251107-1.1 | OPENSUSE-SU-2025:15727-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-pdfminer.sixppc64le | Advisory build | 20251107-1.1 | OPENSUSE-SU-2025:15727-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-pdfminer.sixs390x | Advisory build | 20251107-1.1 | OPENSUSE-SU-2025:15727-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-pdfminer.sixx86_64 | Advisory build | 20251107-1.1 | OPENSUSE-SU-2025:15727-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-pdfminer.sixaarch64 | Advisory build | 20251107-1.1 | OPENSUSE-SU-2025:15727-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-pdfminer.sixppc64le | Advisory build | 20251107-1.1 | OPENSUSE-SU-2025:15727-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-pdfminer.sixs390x | Advisory build | 20251107-1.1 | OPENSUSE-SU-2025:15727-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-pdfminer.sixx86_64 | Advisory build | 20251107-1.1 | OPENSUSE-SU-2025:15727-1 |
| Ubuntu | bionic | pdfminer-data | Advisory build | 20140328+dfsg-1ubuntu0.18.04.1~esm1 | USN-8837-1 |
| Ubuntu | bionic | python-pdfminer | Advisory build | 20140328+dfsg-1ubuntu0.18.04.1~esm1 | USN-8837-1 |
| Ubuntu | focal | pdfminer | Advisory build | 20191020+dfsg-2ubuntu0.1~esm1 | USN-8837-1 |
| Ubuntu | focal | pdfminer-data | Advisory build | 20191020+dfsg-2ubuntu0.1~esm1 | USN-8837-1 |
| Ubuntu | focal | python3-pdfminer | Advisory build | 20191020+dfsg-2ubuntu0.1~esm1 | USN-8837-1 |
| Ubuntu | jammy | pdfminer | Advisory build | 20220319+dfsg-1ubuntu0.1~esm1 | USN-8837-1 |
| Ubuntu | jammy | pdfminer-data | Advisory build | 20220319+dfsg-1ubuntu0.1~esm1 | USN-8837-1 |
| Ubuntu | jammy | python3-pdfminer | Advisory build | 20220319+dfsg-1ubuntu0.1~esm1 | USN-8837-1 |
| Ubuntu | noble | pdfminer | Advisory build | 20221105+dfsg-1ubuntu0.1~esm1 | USN-8837-1 |
| Ubuntu | noble | pdfminer-data | Advisory build | 20221105+dfsg-1ubuntu0.1~esm1 | USN-8837-1 |
| Ubuntu | noble | python3-pdfminer | Advisory build | 20221105+dfsg-1ubuntu0.1~esm1 | USN-8837-1 |
| Ubuntu | xenial | pdfminer | Advisory build | 20140328+dfsg-1ubuntu0.16.04.1~esm1 | USN-8837-1 |
| Ubuntu | xenial | pdfminer-data | Advisory build | 20140328+dfsg-1ubuntu0.16.04.1~esm1 | USN-8837-1 |
| Ubuntu | xenial | python-pdfminer | Advisory build | 20140328+dfsg-1ubuntu0.16.04.1~esm1 | USN-8837-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.6 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pdfminer | pdfminer.six | < 20251107 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-502 CWE-502: Deserialization of Untrusted Data
References
5- https://github.com/pdfminer/pdfminer.six/commit/b808ee05dd7f0c8ea8ec34bdf394d40e63501086
- https://github.com/pdfminer/pdfminer.six/releases/tag/20251107
- https://github.com/pdfminer/pdfminer.six/security/advisories/GHSA-wf5f-4jwr-ppcp
- https://lists.debian.org/debian-lts-announce/2025/11/msg00017.html
- https://lists.debian.org/debian-lts-announce/2026/01/msg00005.html
Provider assertions
3GitHub_M · cna
pdfminer.six vulnerable to Arbitrary Code Execution via Crafted PDF Input
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d588960f5458a56e7a98760655e25793ff360effc9a879e0227258a212d71256
- Ingested
- 23 Sep 2026, 08:56:07 UTC
- Source record
- Official CVE record