Deserialization of Untrusted Data Affecting pdfminer package, versions <20221105+dfsg-1.1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.33% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-PDFMINER-13883128
  • published12 Nov 2025
  • disclosed10 Nov 2025

Introduced: 10 Nov 2025

CVE-2025-64512  (opens in a new tab)
CWE-502  (opens in a new tab)

How to fix?

Upgrade Debian:unstable pdfminer to version 20221105+dfsg-1.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream pdfminer package and not the pdfminer package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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 Base Scores

version 3.1