{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-64512","id":"CVE-2025-64512","title":"pdfminer.six vulnerable to Arbitrary Code Execution via Crafted PDF Input","description":"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 ","descriptionLong":"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.","published":"2025-11-10T21:58:37.950Z","updated":"2026-10-28T02:30:31.051214365Z","reserved":"2025-11-05T21:15:39.399Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["pdfminer.six"],"affectedProducts":[{"vendor":"pdfminer","product":"pdfminer.six","defaultStatus":null,"versions":[{"version":"< 20251107","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"pdfminer-six","purl":"pkg:pypi/pdfminer-six","ranges":["<20251107"],"fixed":["20251107"],"advisory":"GHSA-wf5f-4jwr-ppcp"}],"cwes":["CWE-502"],"aliases":["GHSA-wf5f-4jwr-ppcp","PYSEC-2026-1762"],"references":[{"url":"https://github.com/pdfminer/pdfminer.six/security/advisories/GHSA-wf5f-4jwr-ppcp","tags":["x_refsource_CONFIRM","exploit","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/pdfminer/pdfminer.six/commit/b808ee05dd7f0c8ea8ec34bdf394d40e63501086","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/pdfminer/pdfminer.six/releases/tag/20251107","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/11/msg00017.html","tags":["Mailing List","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2026/01/msg00005.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/64xxx/CVE-2025-64512.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64512","tags":["advisory"]},{"url":"https://github.com/pdfminer/pdfminer.six","tags":["package"]},{"url":"https://pypi.org/project/pdfminer-six","tags":["package"]},{"url":"https://github.com/advisories/GHSA-wf5f-4jwr-ppcp","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00334,"epssPercentile":0.27321,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-64512","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64512","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-64512","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-wf5f-4jwr-ppcp","ok":true,"note":"GHSA-wf5f-4jwr-ppcp"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-64512","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}