FreeBSD VuXML: Documenting security issues in FreeBSD and the FreeBSD Ports Collection

py-pdfminer.six -- Arbitrary Code Execution in pdfminer.six via Crafted PDF Input

Affected packages
py310-pdfminer.six < 20251107
py311-pdfminer.six < 20251107
py312-pdfminer.six < 20251107
py313-pdfminer.six < 20251107
py313t-pdfminer.six < 20251107
py314-pdfminer.six < 20251107

Details

VuXML ID fa433f05-c217-11f0-82ac-901b0edee044
Discovery 2025-11-07
Entry 2025-11-17

Pieter Marsman reports:

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.

References

CVE Name CVE-2025-64512
URL https://nvd.nist.gov/vuln/detail/CVE-2025-64512