Deserialization of Untrusted Data in pdfminer.six - CVE-2025-64512
Published: November 27, 2025 / Updated: January 9, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to insecure input validation when processing serialized data in CMapDB._load_data(). A remote attacker can trick the victim into opening a specially crafted PDF file and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Debian Linux
Fedora
Ubuntu
openEuler
pdfminer (Ubuntu package)
python-pdfminer
pdfminer (Debian package)
python-pdfminer.six
python-pdfminer.six-help
python3-pdfminer.six
How to mitigate CVE-2025-64512
pdfminer (Ubuntu package) - addressed in versions 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
python-pdfminer - update to 20220319-3.el8
pdfminer (Debian package) - addressed in versions 20221105+dfsg-1.1~deb12u1, 20221105+dfsg-1.1~deb13u1
python-pdfminer.six - update to 20231228-4
python-pdfminer.six-help - update to 20231228-4
python3-pdfminer.six - update to 20231228-4