Skip to content
Fencer Vulns
high 8.6

CVE-2025-64512 json

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

published 2025-11-07 12 mo ago modified 2026-07-07 4 mo ago also GHSA-wf5f-4jwr-ppcp , PYSEC-2026-1762 , EUVD-2025-38315

cvss
8.6
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 26%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi pdfminer-six 20251107
  • pdfminer pdfminer.six 2025-11-07
  • pdfminer Debian 12 20221105+dfsg-1.1~deb12u1
  • pdfminer Debian 13 20221105+dfsg-1.1~deb13u1
  • pdfminer Debian 14 20221105+dfsg-1.1

debian advisories DEBIAN-CVE-2025-64512

  • pdfminer Ubuntu Pro 16.04 LTS 20140328+dfsg-1ubuntu0.16.04.1~esm1
  • pdfminer Ubuntu Pro 18.04 LTS 20140328+dfsg-1ubuntu0.18.04.1~esm1
  • pdfminer Ubuntu Pro 20.04 LTS 20191020+dfsg-2ubuntu0.1~esm1
  • pdfminer Ubuntu Pro 22.04 LTS 20220319+dfsg-1ubuntu0.1~esm1
  • pdfminer Ubuntu Pro 24.04 LTS 20221105+dfsg-1ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2025-64512

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • python-pdfminer.six openSUSE Tumbleweed 20251107-1.1

opensuse advisories openSUSE-SU-2025:15727-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-64512 updated cvss 8.6

pdfminer.six: pdfminer.six Arbitrary Code Execution via Crafted PDF Input

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
total
Assessed
11 mo ago

Exploit prediction

0.33% chance of exploitation in the next 30 days, higher than 26% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/pdfminer/pdfminer.six/security/advisories/GHSA-wf5f-4jwr-ppcp referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 8.6 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
GitHub 3.1 8.6 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
OSV 3.1 8.6 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
pypi pdfminer-six
<20251107
20251107

Affected products

  • pdfminer pdfminer.six

Classification

Weakness
  • CWE-502 Deserialization of Untrusted Data

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.