Cyber Resilience

CVE-2025-64512

Deserialization in Pdfminer.Six ≤ 2025-11-07

Public PoCDeserialization
Published
10 November 2025
Modified
08 January 2026
Patch / advisory
CVSS Score v3.1 8.6
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
EPSS Score 0.0031 23th percentile
Risk Priority 60 floored blend · peak EPSS

Summary

CVE-2025-64512 is a high-severity Deserialization of Untrusted Data (CWE-502) vulnerability in Pdfminer Pdfminer.Six. Its CVSS base score is 8.6 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 23th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2025-64512 is a deserialization vulnerability (CWE-502) in pdfminer.six, a community-maintained fork of the original PDFMiner tool for extracting information from PDF documents. In versions prior to 20251107, the CMapDB._load_data() function uses pickle.loads() to deserialize pickle files intended to be from the cmap/ directory within the pdfminer.six distribution. However, a malicious PDF can specify an alternative directory and filename ending in .pickle.gz, causing the tool to load and execute arbitrary code from a malicious, zipped pickle file during PDF processing.

The vulnerability has a CVSS v3.1 base score of 8.6 (AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H). Exploitation requires local access and user interaction, such as a victim running pdfminer.six on a specially crafted PDF file, with low complexity and no privileges needed. Successful exploitation allows arbitrary code execution with high impacts on confidentiality, integrity, and availability, and changes the scope to affect the entire system.

Mitigation is provided by upgrading to pdfminer.six version 20251107, which addresses the issue. The GitHub security advisory (GHSA-wf5f-4jwr-ppcp), fixing commit (b808ee05dd7f0c8ea8ec34bdf394d40e63501086), and release page detail the patch. Debian LTS announcements confirm updates for affected packages in their repositories.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

`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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-49113Same product: Debian Debian Linux
CVE-2023-27372Same product: Debian Debian Linux
CVE-2026-24765Same product: Debian Debian Linux
CVE-2021-42392Same product: Debian Debian Linux
CVE-2023-46604Same product: Debian Debian Linux
CVE-2019-17571Same product: Debian Debian Linux
CVE-2024-3301Shared CWE-502
CVE-2025-43713Shared CWE-502
CVE-2023-33299Shared CWE-502
CVE-2024-8514Shared CWE-502

Affected Assets

pdfminer
pdfminer.six
≤ 2025-11-07
debian
debian linux
11.0

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

Developer testing and evaluation can uncover deserialization flaws before deployment.

Input validation directly stops deserialization of untrusted data by ensuring inputs are valid before processing.

Engineering principles such as safe deserialization and input sanitization structurally prevent the weakness from being introduced.

Integrity verification tools can detect malformed or tampered serialized data after the fact.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-02 none match
prevents

PR.PS-02 addresses only post-deployment updates/patching and cannot prevent introduction of unsafe deserialization code, yet it can remediate some instances when the flaw exists in outdated libraries or components.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing includes validation of deserialization routines and the use of untrusted data, reducing the likelihood that unsafe object reconstruction will be deployed.

prevents

Requiring vetted libraries, regular updates and SAST before release reduces the likelihood that deserialization logic will accept and act on attacker-controlled serialized objects.

finds

Regular scanning of third-party libraries and timely patching reduce the likelihood that unsafe deserialization vulnerabilities remain active.

none

Mandatory malware scanning of data received over networks or storage media intercepts malicious serialized payloads before they are deserialized by the target application.

References