CVE-2025-64512

pdfminer.six vulnerable to Arbitrary Code Execution via Crafted PDF Input

Published Nov 10, 2025 CVSS 3.1 · 8.6 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4374-1 pdfminer security update
Debian DLA Debian DLA DLA-4374-2 pdfminer security update
Debian DSA Debian DSA DSA-6062-1 pdfminer security update
Github GHSA Github GHSA GHSA-wf5f-4jwr-ppcp Arbitrary Code Execution in pdfminer.six via Crafted PDF Input
Ubuntu USN Ubuntu USN USN-8837-1 pdfminer vulnerabilities
History
Type Values Removed Values Added
First Time appeared Debian
Debian debian Linux
CPEs cpe:2.3:a:pdfminer:pdfminer.six:*:*:*:*:*:*:*:*
cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
Vendors & Products Debian
Debian debian Linux
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Pdfminer
Pdfminer pdfminer.six
Vendors & Products Pdfminer
Pdfminer pdfminer.six
Type Values Removed Values Added
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.
Title pdfminer.six vulnerable to Arbitrary Code Execution via Crafted PDF Input
Weaknesses CWE-502
References
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jan 8, 2026, 10:04 PM
Reserved
Nov 5, 2025, 9:15 PM
Status
Modified
Published
Nov 10, 2025, 10:15 PM
Modified
Jun 17, 2026, 9:54 AM