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

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-11-07T20:52:24.000Z
- Modified: 2026-07-07T17:56:32.052Z
- Also known as: GHSA-wf5f-4jwr-ppcp, PYSEC-2026-1762
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- pdfminer pdfminer.six: < 20251107; before 2025-11-07
- pdfminer-six (PyPI): before 20251107
- debian debian_linux: 11.0

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.6 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.6 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/pdfminer/pdfminer.six/security/advisories/GHSA-wf5f-4jwr-ppcp> (exploit, vendor-advisory, web)
- <https://github.com/pdfminer/pdfminer.six/commit/b808ee05dd7f0c8ea8ec34bdf394d40e63501086> (patch, web)
- <https://github.com/pdfminer/pdfminer.six/releases/tag/20251107> (release-notes, web)
- <https://lists.debian.org/debian-lts-announce/2025/11/msg00017.html> (mailing-list, web)
- <https://lists.debian.org/debian-lts-announce/2026/01/msg00005.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-64512> (advisory)
- <https://github.com/pdfminer/pdfminer.six> (package)
- <https://pypi.org/project/pdfminer-six> (package)
- <https://github.com/advisories/GHSA-wf5f-4jwr-ppcp> (advisory)

## Sources

- CVE List: [CVE-2025-64512](https://www.cve.org/CVERecord?id=CVE-2025-64512), CVE Terms of Use, modified 2026-01-08
- GitHub Advisory Database: [GHSA-wf5f-4jwr-ppcp](https://github.com/advisories/GHSA-wf5f-4jwr-ppcp), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-64512](https://nvd.nist.gov/vuln/detail/CVE-2025-64512), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1762](https://osv.dev/vulnerability/PYSEC-2026-1762), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2025-64512 · Whole record: https://cve.day/CVE-2025-64512.json · Rebuilt by cve.day 2026-11-25T22:59:07.422Z
