CVE-2025-64512
Python vulnerability analysis and mitigation

Overview

CVE-2025-64512 affects pdfminer.six, a community-maintained fork of PDFMiner used for extracting information from PDF documents. The vulnerability was discovered in versions prior to 20251107, where the software could execute arbitrary code from a malicious pickle file when processing a specially crafted PDF file. The issue was disclosed on November 7, 2025, and affects all versions of pdfminer.six before version 20251107 (GitHub Advisory, NVD).

Technical details

The vulnerability exists in the CMapDB.loaddata() function which uses pickle.loads() to deserialize pickle files. While these pickle files are intended to be part of the pdfminer.six distribution stored in the cmap/ directory, a malicious PDF can specify an alternative directory and filename as long as the filename ends in .pickle.gz. The vulnerability has been assigned a CVSS v3.1 base score of 8.6 (High) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H, indicating local attack vector, low attack complexity, no privileges required, and high impact on confidentiality, integrity, and availability (GitHub Advisory).

Impact

If successfully exploited, this vulnerability allows attackers to execute arbitrary Python code with the permissions of the process running pdfminer.six. The impact severity varies by operating system - on Windows systems, exploitation is easier as paths can specify network locations (e.g., WebDAV, SMB), allowing attackers to host malicious pickle files remotely. On Linux-like systems, exploitation is more difficult as it requires the malicious pickle file to be present on the target system in a known location (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in pdfminer.six version 20251107. The fix includes implementing proper path validation to prevent directory traversal attacks. Users are strongly recommended to upgrade to this version or later. For Debian 11 (bullseye) users, the fix has been backported to version 20200726-1+deb11u1 (Debian Advisory, GitHub Release).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66471HIGH8.9
  • PythonPython
  • urllib3
NoYesDec 05, 2025
CVE-2025-66418HIGH8.9
  • PythonPython
  • python-urllib3
NoYesDec 05, 2025
CVE-2025-65958HIGH8.5
  • PythonPython
  • cpe:2.3:a:openwebui:open_webui
NoYesDec 04, 2025
CVE-2025-56427HIGH7.5
  • PythonPython
  • composio
NoNoDec 04, 2025
CVE-2025-63681MEDIUM4.3
  • PythonPython
  • open-webui
NoNoDec 04, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management