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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2025-11-10 · Modified: 2026-01-08
- Aliases: GHSA-wf5f-4jwr-ppcp, PYSEC-2026-1762, UBUNTU-CVE-2025-64512, DEBIAN-CVE-2025-64512, DLA-4374-1, DSA-6062-1, openSUSE-SU-2025:15727-1
- Record: https://cvemate.com/vulnerability/CVE-2025-64512 · JSON: https://cvemate.com/vulnerability/CVE-2025-64512/json

## Description

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

## Signals

- CVSS: 8.6 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- EPSS: 0.334%, percentile 28.662%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- debian pdfminer (Debian): \< 20200726-1+deb11u1 \| \< 20221105+dfsg-1.1~deb12u1 \| \< 20221105+dfsg-1.1~deb13u1 \| \< 20221105+dfsg-1.1
- ubuntu pdfminer (Ubuntu): \< 20140328+dfsg-1ubuntu0.16.04.1~esm1 \| \< 20140328+dfsg-1ubuntu0.18.04.1~esm1 \| \< 20191020+dfsg-2ubuntu0.1~esm1 \| \< 20220319+dfsg-1ubuntu0.1~esm1 \| \< 20221105+dfsg-1ubuntu0.1~esm1 \| All versions (No fix recorded)
- debian debian\_linux: 11.0
- pdfminer pdfminer.six: \< 20251107 \| \< 2025-11-07
- PyPI pdfminer-six (PyPI): \< 20251107
- opensuse python-pdfminer.six&distro=openSUSE Tumbleweed (openSUSE): \< 20251107-1.1

## 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://lists.debian.org/debian-lts-announce/2025/11/msg00017.html>
- <https://lists.debian.org/debian-lts-announce/2026/01/msg00005.html>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-64512>
- <https://github.com/pdfminer/pdfminer.six>
- <https://pypi.org/project/pdfminer-six>
- <https://github.com/advisories/GHSA-wf5f-4jwr-ppcp>
- <https://ubuntu.com/security/CVE-2025-64512>
- <https://www.cve.org/CVERecord?id=CVE-2025-64512>
- <https://ubuntu.com/security/notices/USN-8837-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-64512>
- <https://www.suse.com/security/cve/CVE-2025-64512>

---

Data as of 2026-12-05T02:45:21.469Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
