{"id":"UBUNTU-CVE-2025-64512","details":"Pdfminer.six is a community maintained fork of the original PDFMiner, a tool for extracting information from PDF documents. Prior to version 20251107, 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. Version 20251107 fixes the issue.","modified":"2026-05-20T16:23:41.089143258Z","published":"2025-11-10T22:15:00Z","upstream":["CVE-2025-64512"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-64512"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-64512"},{"type":"REPORT","url":"https://github.com/pdfminer/pdfminer.six/security/advisories/GHSA-wf5f-4jwr-ppcp"},{"type":"REPORT","url":"https://github.com/pdfminer/pdfminer.six/commit/b808ee05dd7f0c8ea8ec34bdf394d40e63501086"},{"type":"REPORT","url":"https://github.com/pdfminer/pdfminer.six/releases/tag/20251107"}],"affected":[{"package":{"name":"pdfminer","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/pdfminer?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["20110515+dfsg-1","20140328+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"20140328+dfsg-1","binary_name":"pdfminer-data"},{"binary_name":"python-pdfminer","binary_version":"20140328+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64512.json"}},{"package":{"name":"pdfminer","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/pdfminer?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["20140328+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"pdfminer-data","binary_version":"20140328+dfsg-1"},{"binary_name":"python-pdfminer","binary_version":"20140328+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64512.json"}},{"package":{"name":"pdfminer","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/pdfminer?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["20181108+dfsg-3","20191020+dfsg-1","20191020+dfsg-2"],"ecosystem_specific":{"binaries":[{"binary_name":"pdfminer-data","binary_version":"20191020+dfsg-2"},{"binary_name":"python3-pdfminer","binary_version":"20191020+dfsg-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64512.json"}},{"package":{"name":"pdfminer","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/pdfminer?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["20200726-1","20201018+dfsg-1","20220319+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"20220319+dfsg-1","binary_name":"pdfminer-data"},{"binary_name":"python3-pdfminer","binary_version":"20220319+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64512.json"}},{"package":{"name":"pdfminer","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/pdfminer?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["20221105+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"20221105+dfsg-1","binary_name":"pdfminer-data"},{"binary_name":"python3-pdfminer","binary_version":"20221105+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64512.json"}},{"package":{"name":"pdfminer","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/pdfminer?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["20221105+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"20221105+dfsg-1","binary_name":"pdfminer-data"},{"binary_name":"python3-pdfminer","binary_version":"20221105+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64512.json"}},{"package":{"name":"pdfminer","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/pdfminer?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["20221105+dfsg-1","20221105+dfsg-1.1","20260107+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"20260107+dfsg-1","binary_name":"pdfminer-data"},{"binary_name":"python3-pdfminer","binary_version":"20260107+dfsg-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64512.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}