A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-64512

CVE-2025-64512: Pdfminer.six RCE Vulnerability

CVE-2025-64512 is a remote code execution vulnerability in Pdfminer.six that allows attackers to execute arbitrary code through malicious PDF files. This article covers the technical details, affected versions, and mitigation steps.

Published: May 26, 2026

CVE-2025-64512 Overview

CVE-2025-64512 is an insecure deserialization vulnerability in pdfminer.six, a community-maintained Python library for extracting text and metadata from PDF documents. Versions prior to 20251107 execute arbitrary code when processing a crafted PDF file that references a malicious pickle archive. The CMapDB._load_data() function calls pickle.loads() on files ending in .pickle.gz, and a malicious PDF can redirect the loader to an attacker-controlled path. The flaw is tracked under [CWE-502: Deserialization of Untrusted Data] and was fixed in release 20251107.

Critical Impact

A malicious PDF processed by pdfminer.six can trigger arbitrary code execution in the context of the user running the parser, enabling local compromise of document-processing pipelines, automation servers, and developer workstations.

Affected Products

  • pdfminer.six versions prior to 20251107
  • Debian Linux 11 (LTS) packaged distributions of pdfminer.six
  • Downstream Python applications that embed pdfminer.six for PDF parsing

Discovery Timeline

  • 2025-11-10 - CVE-2025-64512 published to NVD
  • 2025-11-07 - pdfminer.six release 20251107 published with the fix
  • 2026-01-08 - Last updated in NVD database

Technical Details for CVE-2025-64512

Vulnerability Analysis

The vulnerability resides in the character map (CMap) loading routine of pdfminer.six. PDF documents reference CMap resources by name when decoding font character codes, and pdfminer.six resolves those names against a bundled cmap/ directory using pickle.loads() on gzip-compressed pickle files. Because Python's pickle module executes arbitrary callables during deserialization, any attacker who controls the pickle bytes controls code execution. The library trusted the CMap name supplied inside the PDF without constraining it to the bundled directory, so a malicious document can specify an alternative directory and filename as long as the filename ends in .pickle.gz.

Exploitation requires the victim to process an attacker-supplied PDF. Document conversion services, OCR pipelines, search indexers, and CI tooling that ingest untrusted PDFs are the primary exposure surface.

Root Cause

Two defects combine to produce the issue. First, CMapDB._load_data() performs unsafe deserialization with pickle.loads() on file contents whose path is influenced by PDF input. Second, the path resolution permits directory traversal because the joined path is not validated against the intended cmap/ parent directory before being opened.

Attack Vector

An attacker stages a malicious .pickle.gz file in a location reachable by the victim process, such as an extracted archive, a writable temp directory, or a network share mounted locally. The attacker then delivers a PDF whose font resources reference that pickle path. When pdfminer.six parses the document, pickle.loads() reconstructs attacker-defined objects and invokes their __reduce__ payload, yielding code execution under the parsing process's identity.

python
         )
         for directory in cmap_paths:
             path = os.path.join(directory, filename)
-            if os.path.exists(path):
-                gzfile = gzip.open(path)
+            # Resolve paths to prevent directory traversal
+            resolved_path = os.path.realpath(path)
+            resolved_directory = os.path.realpath(directory)
+            # Check if resolved path is within the intended directory
+            if not resolved_path.startswith(resolved_directory + os.sep):
+                continue
+            if os.path.exists(resolved_path):
+                gzfile = gzip.open(resolved_path)
                 try:
                     return type(str(name), (), pickle.loads(gzfile.read()))
                 finally:

Source: pdfminer.six commit b808ee0 - The patch normalizes the candidate path with os.path.realpath() and rejects any resolved path that escapes the intended CMap directory, preventing PDF-controlled traversal into attacker-staged pickle files.

Detection Methods for CVE-2025-64512

Indicators of Compromise

  • Presence of unexpected .pickle.gz files outside the pdfminer/cmap/ package directory, especially in temp, upload, or shared directories.
  • Python processes running pdfminer.six spawning shells, network clients, or compilers immediately after PDF ingestion.
  • PDF samples whose font CMap resource names include path separators (/, \, ..) or absolute paths.

Detection Strategies

  • Inventory installed pdfminer.six versions across endpoints, build agents, and containers; flag any release earlier than 20251107.
  • Hunt for child processes of Python interpreters that loaded pdfminer modules, correlating PDF file opens with subsequent process creation events.
  • Inspect captured PDFs for /CMap or /Encoding entries referencing non-standard CMap names, which is uncommon in benign documents.

Monitoring Recommendations

  • Forward process-creation and file-access telemetry from PDF-processing servers into your SIEM or data lake for retroactive hunting.
  • Alert on writes of files matching *.pickle.gz outside known package install paths.
  • Track outbound network connections originating from document parsing workers, which should normally be silent.

How to Mitigate CVE-2025-64512

Immediate Actions Required

  • Upgrade pdfminer.six to version 20251107 or later across all environments that ingest PDFs.
  • Audit dependent packages (for example pdfplumber) and rebuild containers or virtual environments to pull the patched release transitively.
  • Quarantine any recently received PDFs from untrusted sources until parsing hosts are patched.

Patch Information

The fix is delivered in pdfminer.six release 20251107 via commit b808ee05dd7f0c8ea8ec34bdf394d40e63501086. Distribution-specific updates are tracked in the Debian LTS announcement (November 2025) and Debian LTS announcement (January 2026). Additional details are published in GitHub Security Advisory GHSA-wf5f-4jwr-ppcp.

Workarounds

  • Run PDF parsing in a sandboxed, non-privileged process with no outbound network access and an ephemeral filesystem.
  • Restrict the working directory of the parser so that no writable location contains .pickle.gz files reachable by traversal.
  • Validate PDFs before processing and reject documents that reference CMap names containing path separators.
bash
# Upgrade to the patched release
pip install --upgrade 'pdfminer.six>=20251107'

# Verify the installed version
python -c "import pdfminer; print(pdfminer.__version__)"

# Debian / Ubuntu LTS
sudo apt update && sudo apt install --only-upgrade python3-pdfminer

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPdfminer

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • Technical References
  • GitHub Release Tag 20251107

  • Debian LTS Announcement 2025-11

  • Debian LTS Announcement 2026-01
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-wf5f-4jwr-ppcp
  • Related CVEs
  • CVE-2025-70559: pdfminer.six RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English