Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/saadhassan77/cve-2025-64512---pdfminer.six-remote-code-execution-rce-
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration Testing
GitHubsaadhassan77/cve-2025-64512---pdfminer.six-remote-code-execution-rce-

CVE-2025-64512---pdfminer.six-Remote-Code-Execution-RCE-

Exploit PoC for CVE-2025-64512 targeting insecure deserialization in pdfminer.six. Generates malicious pickle payload and produces exploit PDFs for RCE via web file upload.

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
View Repository
31 month agoNot yet reviewed
Share

CVE-2025-64512 - pdfminer.six Remote Code Execution (RCE)

CVE-2025-64512 CVSS 8.6

WARNING – EDUCATIONAL USE ONLY

This proof-of-concept is for authorized security testing and educational purposes only.
Use only on systems you own or have explicit written permission to test. The author is not responsible for any misuse or damage caused by this code.


Description

CVE-2025-64512 is a critical vulnerability in pdfminer.six, a popular Python library for extracting text and metadata from PDF files. The flaw allows Remote Code Execution (RCE) via insecure deserialization of pickle data when processing a malicious PDF.

  • Vulnerability Type: Insecure Deserialization (CWE-502)
  • CVSS 3.1 Score: 8.6 (High)
  • Affected Versions: pdfminer.six <= 20250506
  • Patched Version: 20251107 and later

  • Attack Vector

    The vulnerability is commonly triggered through file upload functionality in web applications that use pdfminer.six to parse uploaded PDF documents (e.g., document management systems, reporting tools, profile picture uploads accepting PDFs).


    Exploitation Steps

    Step 1 – Generate the malicious pickle payload

    Run generate_pickle.py to create malicious.pickle.gz, which contains your reverse shell payload.

    root@kitploit:~
    python3 generate_pickle.py
    
    Step 2 – Generate the exploit PDF
    Choose one of the two available methods:
    
    # Method 1: /Encoding path traversal (less reliable)
    python3 method1_encoding_poc.py
    
    # Method 2: /CMap deserialization (official CVE method – RECOMMENDED)
    python3 method2_cmap_poc.py
    Both scripts produce exploit.pdf, which references the malicious pickle file and triggers the deserialization flaw when processed.
    
    Step 3 – Start your listener
    
    nc -lvnp 4444
    
    Step 4 – Upload and execute
    
    Navigate to the target web application's file upload feature.
    Upload exploit.pdf via the web interface.
    The application processes the PDF using a vulnerable version of pdfminer.six.
    The pickle payload deserialises and executes, granting you a reverse shell.
    
    Download Tool