cve.bz

CVE-2025-64512 Deserialization of Untrusted Data

7.8 highExploit referenceEPSS 0.3%Fix available

High (7.8). EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in pdfminer-six 20251107.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 27th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2025-11-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-502 Deserialization of Untrusted Data
OWASP Top 10
A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-64512 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-64512?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-64512?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-64512 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
pdfminer:pdfminer.sixbefore 2025-11-07
debian:debian_linux11.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wf5f-4jwr-ppcpPyPIpdfminer-six<2025110720251107
PYSEC-2026-1762PyPIpdfminer-six<2025110720251107

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11pdfminer20200726-1+deb11u1DLA-4374-1
Debian12pdfminer20221105+dfsg-1.1~deb12u1DEBIAN-CVE-2025-64512 DSA-6062-1
Debian13pdfminer20221105+dfsg-1.1~deb13u1DEBIAN-CVE-2025-64512 DSA-6062-1
Debian14pdfminer20221105+dfsg-1.1DEBIAN-CVE-2025-64512
Ubuntu25.10pdfminerno fix listedUBUNTU-CVE-2025-64512
UbuntuPro:16.04:LTSpdfminer20140328+dfsg-1ubuntu0.16.04.1~esm1UBUNTU-CVE-2025-64512 USN-8837-1
UbuntuPro:18.04:LTSpdfminer20140328+dfsg-1ubuntu0.18.04.1~esm1UBUNTU-CVE-2025-64512 USN-8837-1
UbuntuPro:20.04:LTSpdfminer20191020+dfsg-2ubuntu0.1~esm1UBUNTU-CVE-2025-64512 USN-8837-1
UbuntuPro:22.04:LTSpdfminer20220319+dfsg-1ubuntu0.1~esm1UBUNTU-CVE-2025-64512 USN-8837-1
UbuntuPro:24.04:LTSpdfminer20221105+dfsg-1ubuntu0.1~esm1UBUNTU-CVE-2025-64512 USN-8837-1
openSUSETumbleweedpython-pdfminer.six20251107-1.1openSUSE-SU-2025:15727-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • luigigubello/CVE-2025-64512-Polyglot-PoC Harbor Check: matches CVE 8 stars, Python, created
    A Proof-of-Concept for CVE-2025-64512 using a polyglot file.
  • matesz44/CVE-2025-64512 Harbor Check: matches CVE 4 stars, Python, created
    CVE-2025-64512: pdfminer.six pickle deserialization rce; .pickle.gz + pdf generator w/ custom payloads
  • BardLaudian/CVE-2025-64512 Harbor Check: matches CVE 1 star, Python, created
    CLI wrapper around the official PoC for CVE-2025-64512 — pdfminer.six insecure pickle deserialization via crafted PDF (RCE)
  • Jinook-Kim/CVE-2025-64512_PoC Harbor Check: matches CVE 0 stars, Python, created
  • oguzylmzx/CVE-2025-64512-pdfminer-PoC Harbor Check: matches CVE 0 stars, Python, created
    PoC for CVE-2025-64512: pdfminer.six CMapDB pickle deserialization RCE via crafted PDF
5 more

Attack patterns (CAPEC)

  • CAPEC-586 Object Injection Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON