{"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-09-28T22:45:10.479136566Z","published":"2025-11-10T22:15:00Z","related":["USN-8837-1"],"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"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8837-1"}],"affected":[{"package":{"name":"pdfminer","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/pdfminer?arch=source&distro=esm-apps-legacy%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20140328+dfsg-1ubuntu0.16.04.1~esm1"}]}],"versions":["20110515+dfsg-1","20140328+dfsg-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro","binaries":[{"binary_version":"20140328+dfsg-1ubuntu0.16.04.1~esm1","binary_name":"pdfminer-data"},{"binary_version":"20140328+dfsg-1ubuntu0.16.04.1~esm1","binary_name":"python-pdfminer"}]},"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:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/pdfminer?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20140328+dfsg-1ubuntu0.18.04.1~esm1"}]}],"versions":["20140328+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_name":"pdfminer-data","binary_version":"20140328+dfsg-1ubuntu0.18.04.1~esm1"},{"binary_name":"python-pdfminer","binary_version":"20140328+dfsg-1ubuntu0.18.04.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"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:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/pdfminer?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20191020+dfsg-2ubuntu0.1~esm1"}]}],"versions":["20181108+dfsg-3","20191020+dfsg-1","20191020+dfsg-2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"20191020+dfsg-2ubuntu0.1~esm1","binary_name":"pdfminer-data"},{"binary_name":"python3-pdfminer","binary_version":"20191020+dfsg-2ubuntu0.1~esm1"}]},"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:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/pdfminer?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20220319+dfsg-1ubuntu0.1~esm1"}]}],"versions":["20200726-1","20201018+dfsg-1","20220319+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"20220319+dfsg-1ubuntu0.1~esm1","binary_name":"pdfminer-data"},{"binary_name":"python3-pdfminer","binary_version":"20220319+dfsg-1ubuntu0.1~esm1"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"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:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/pdfminer?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"20221105+dfsg-1ubuntu0.1~esm1"}]}],"versions":["20221105+dfsg-1"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"pdfminer-data","binary_version":"20221105+dfsg-1ubuntu0.1~esm1"},{"binary_version":"20221105+dfsg-1ubuntu0.1~esm1","binary_name":"python3-pdfminer"}]},"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_name":"pdfminer-data","binary_version":"20221105+dfsg-1"},{"binary_version":"20221105+dfsg-1","binary_name":"python3-pdfminer"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-64512.json"}}],"schema_version":"1.9.0","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"}]}