Skip to content
OpenAdvisories
High · 8.6 Public exploit CVE-2025-64512 EUVD-2025-38315GHSA-wf5f-4jwr-ppcpPYSEC-2026-1762

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

Published Nov 10, 2025 · Updated Jan 8, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
pdfminer pdfminer.six < 20251107 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pdfminer 20221105+dfsg-1.1 —
Debian 13 pdfminer 20221105+dfsg-1.1~deb13u1 DSA-6062-1
Debian 12 pdfminer 20221105+dfsg-1.1~deb12u1 DSA-6062-1
Debian 11 pdfminer 20200726-1+deb11u1 DLA-4374-1
ReleasePackageFixed inAdvisory
Ubuntu 25.10 pdfminer No fix yet —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS pdfminer 20221105+dfsg-1ubuntu0.1~esm1 USN-8837-1
Ubuntu Pro 22.04 LTS pdfminer 20220319+dfsg-1ubuntu0.1~esm1 USN-8837-1
Ubuntu Pro 20.04 LTS pdfminer 20191020+dfsg-2ubuntu0.1~esm1 USN-8837-1
Ubuntu Pro 18.04 LTS pdfminer 20140328+dfsg-1ubuntu0.18.04.1~esm1 USN-8837-1
Ubuntu Pro 16.04 LTS pdfminer 20140328+dfsg-1ubuntu0.16.04.1~esm1 USN-8837-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-pdfminer.six 20251107-1.1 openSUSE-SU-2025:15727-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 10 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pdfminer-six < 20251107 20251107 GHSA-wf5f-4jwr-ppcp

Advisories 4

References