Intel

AIKIDO-2026-669434

pdfminer.six is vulnerable to Deserialization of Untrusted Data

Deserialization of Untrusted DataCVE-2025-64512 Published 2 days ago

86

High Risk

This Affects:

PYTHONpdfminer.six
20140915 - 20251229
Fixed in 20251230
Are you affected? Scan for Free

TL;DR

CMapDB._load_data() deserializes CMap data with pickle.loads() from a .pickle.gz path derived from the PDF's encoding name, and that path is not confined to the package cmap/ directory. A crafted PDF can point at an attacker-controlled pickle (including a Windows network path), so processing the document executes arbitrary Python code under the pdfminer process. The fix stops loading attacker-influenced pickle paths for CMap data.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and process untrusted PDF files with pdfminer.

Background info

pdfminer.six is vulnerable to Deserialization of Untrusted Data in versions 20140915 - 20251229.

How to fix this

Upgrade the pdfminer.six and/or the pdfminer-six library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform