{"id":"CVE-2025-64512","published":"2025-11-10T21:58:37Z","modified":"2026-01-08T22:04:11Z","title":"pdfminer.six vulnerable to Arbitrary Code Execution via Crafted PDF Input","vendor":"pdfminer","product":"pdfminer.six","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00334,"percentile":0.27455,"provenance":"source"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/pdfminer/pdfminer.six/security/advisories/GHSA-wf5f-4jwr-ppcp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pdfminer/pdfminer.six/commit/b808ee05dd7f0c8ea8ec34bdf394d40e63501086","tags":["x_refsource_MISC"]},{"url":"https://github.com/pdfminer/pdfminer.six/releases/tag/20251107","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/11/msg00017.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2026/01/msg00005.html","tags":[]}],"priority":{"score":16.5,"factors":[{"name":"EPSS percentile","points":5.49},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.02}]},"exploitSources":{"pocGithub":{"count":7,"skipped":3,"earliest":"2025-12-11","earliestUrl":"https://github.com/luigigubello/CVE-2025-64512-Polyglot-PoC","repos":[{"name":"luigigubello/CVE-2025-64512-Polyglot-PoC","url":"https://github.com/luigigubello/CVE-2025-64512-Polyglot-PoC","stars":8,"created":"2025-12-11"},{"name":"matesz44/CVE-2025-64512","url":"https://github.com/matesz44/CVE-2025-64512","stars":4,"created":"2026-07-19"},{"name":"BardLaudian/CVE-2025-64512","url":"https://github.com/BardLaudian/CVE-2025-64512","stars":1,"created":"2026-07-21"},{"name":"joeack123/PoC-for-CVE-2025-64512","url":"https://github.com/joeack123/PoC-for-CVE-2025-64512","stars":0,"created":"2026-07-19"},{"name":"MehdiChyhab/CVE-2025-64512-exploit","url":"https://github.com/MehdiChyhab/CVE-2025-64512-exploit","stars":0,"created":"2026-07-21"}]},"first":{"date":"2025-12-11","source":"PoC-in-GitHub","url":"https://github.com/luigigubello/CVE-2025-64512-Polyglot-PoC"},"provenance":"source"},"vendorSlug":"pdfminer","affectedVersions":[{"vendor":"pdfminer","product":"pdfminer.six","versions":["< 20251107"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-11-12T17:35:02.625506Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pdfminer.six","vulnerableRanges":["<20251107"],"patched":["20251107"],"from":["GHSA-wf5f-4jwr-ppcp","PYSEC-2026-1762"],"provenance":"source"}],"summary":{"text":"pdfminer.six, a community-maintained fork of PDFMiner used for extracting information from PDF documents, contains a flaw in its CMapDB._load_data() function, which deserializes files with pickle.loads() and can be made to load an attacker-chosen gzipped pickle file through a crafted PDF. An attacker can achieve arbitrary code execution by getting a victim to process a malicious PDF with a vulnerable version, requiring no authentication but user interaction and only local access.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:33Z"},"euvd":{"id":"EUVD-2025-38315","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pdfminer-six-cve-2025-64512","children":[{"from":"CVE-2025-64512","to":"CVE-2025-70559","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"This is caused by an incomplete patch to CVE-2025-64512.","from":"CVE.org","in":"CVE-2025-70559"},{"kind":"similar","provenance":"machine","score":0.53,"basis":"same package + description similarity"}]}]}}