CVE-2025-70559

NameCVE-2025-70559
Descriptionpdfminer.six before 20251230 contains an insecure deserialization vulnerability in the CMap loading mechanism. The library uses Python pickle to deserialize CMap cache files without validation. An attacker with the ability to place a malicious pickle file in a location accessible to the application can trigger arbitrary code execution or privilege escalation when the file is loaded by a trusted process. This is caused by an incomplete patch to CVE-2025-64512.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4374-2

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pdfminer (PTS)bullseye20200726-1vulnerable
bullseye (security)20200726-1+deb11u2fixed
bookworm, bookworm (security)20221105+dfsg-1.1~deb12u1vulnerable
trixie, trixie (security)20221105+dfsg-1.1~deb13u1vulnerable
forky, sid20260107+dfsg-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pdfminersourcebullseye20200726-1+deb11u2DLA-4374-2
pdfminersource(unstable)20260107+dfsg-1

Notes

https://github.com/pdfminer/pdfminer.six/security/advisories/GHSA-f83h-ghpp-7wcc
https://github.com/pdfminer/pdfminer.six/pull/1172
Proper fix by replacing pickle for SON for CMap storage.
Fixed by: https://github.com/pdfminer/pdfminer.six/commit/41a247c2d66ea962823459403b828375ccc7bd33 (20251230)
CVE exists because of an incomplete fix for CVE-2025-64512

Search for package or bug name: Reporting problems