Skip to main content

Prior to version 20251107, pdfminer.six will execute arbitrary code from a malicious pickle file if provided with a malicious PDF file. (CVE-2025-64512)

0
Medium
Published: 11/10/2025 (11/10/2025, 22:15:00 UTC)
Source: GCVE Database
Product: pdfminer

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.

CVSS v3.1

Score 8.6high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Affected software

Ubuntu:Pro:16.04:LTSmore threats →ghsa
pdfminer
pkg:deb/ubuntu/pdfminer?arch=source&distro=esm-apps-legacy/xenial
Affected versions
<20140328+dfsg-1ubuntu0.16.04.1~esm1=20110515+dfsg-1=20140328+dfsg-1
Ubuntu:Pro:18.04:LTSmore threats →ghsa
pdfminer
pkg:deb/ubuntu/pdfminer?arch=source&distro=esm-apps/bionic
Affected versions
<20140328+dfsg-1ubuntu0.18.04.1~esm1=20140328+dfsg-1
Ubuntu:Pro:20.04:LTSmore threats →ghsa
pdfminer
pkg:deb/ubuntu/pdfminer?arch=source&distro=esm-apps/focal
Affected versions
<20191020+dfsg-2ubuntu0.1~esm1=20181108+dfsg-3=20191020+dfsg-1=20191020+dfsg-2
Ubuntu:Pro:22.04:LTSmore threats →ghsa
pdfminer
pkg:deb/ubuntu/pdfminer?arch=source&distro=esm-apps/jammy
Affected versions
<20220319+dfsg-1ubuntu0.1~esm1=20200726-1=20201018+dfsg-1=20220319+dfsg-1
Ubuntu:Pro:24.04:LTSmore threats →ghsa
pdfminer
pkg:deb/ubuntu/pdfminer?arch=source&distro=esm-apps/noble
Affected versions
<20221105+dfsg-1ubuntu0.1~esm1=20221105+dfsg-1
Ubuntu:25.10more threats →ghsa
pdfminer
pkg:deb/ubuntu/pdfminer?arch=source&distro=questing
Affected versions
=20221105+dfsg-1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2025-64512
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:Pro:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:Pro:22.04:LTS","Ubuntu:Pro:24.04:LTS","Ubuntu:25.10"]
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6abb4196f7a7c54106cc3822

Added to database: 09/29/2026, 04:41:58 UTC

Last updated: 09/29/2026, 04:42:31 UTC

Views: 1

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses