PyPI: pdfminer-six

CVE-2025-70559

Safety vulnerability ID: SFTY-20251110-96519

Safety legacy ID: pyup.io-81495

Affected versions of the pdfminer.six package are vulnerable to Deserialization of Untrusted Data due to the CMap loader deserializing untrusted .pickle.gz files with Python’s pickle. In pdfminer.cmapdb._load_data, the code calls pickle.loads on CMap data discovered via CMapDB.get_cmap from directories in the CMAP_PATH search path without validation or restriction, allowing attacker-supplied object payloads to be executed.

Created at: Jul 5, 2026Updated at: Jul 5, 2026

Overview

Insecure Deserialization (pickle) in pdfminer.six CMap Loader — Local Privesc

Advisory

Affected versions of the pdfminer.six package are vulnerable to Deserialization of Untrusted Data due to the CMap loader deserializing untrusted .pickle.gz files with Python’s pickle. In pdfminer.cmapdb._load_data, the code calls pickle.loads on CMap data discovered via CMapDB.get_cmap from directories in the CMAP_PATH search path without validation or restriction, allowing attacker-supplied object payloads to be executed.

Affected Package

Affecting pdfminer-six package, versions<20251107

Also affects

---

How to Fix

Upgradepdfminer-sixto20251107or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more