{"answers":{"affected":"3 open source packages ship an affected version, including pdfminer-six and pdfminer.six. It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-64512 exists.","fix":"Upgrade pdfminer-six to 20251107 or later.","what":"CVE-2025-64512 is a high-severity unsafe deserialization vulnerability in Debian Debian Linux, published on 10 Nov 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-64512 and fix it if it is affected.\n\nWhat it is: CVE-2025-64512 is a high-severity unsafe deserialization vulnerability in Debian Debian Linux, published on 10 Nov 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-64512 exists.\n\nAffected packages and fixed versions:\n- pdfminer-six (PyPI): affected all versions; fixed in 20251107\n- pdfminer-six (PyPI): affected all versions; fixed in 20251107\n- pdfminer.six (PyPI): affected all versions; fixed in 20251107\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-64512/ (Markdown: https://insights.sbomify.com/CVE-2025-64512/index.md)","id":"CVE-2025-64512","markdown":"https://insights.sbomify.com/CVE-2025-64512/index.md","name":"CVE-2025-64512","record":{"aliases":["DEBIAN-CVE-2025-64512","DLA-4374-1","DSA-6062-1","GHSA-wf5f-4jwr-ppcp","PYSEC-2026-1762","ROOT-APP-PYPI-CVE-2025-64512","ROOT-APP-PYPI-GHSA-wf5f-4jwr-ppcp","UBUNTU-CVE-2025-64512","openSUSE-SU-2025:15727-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python PDF library","requires_auth":"none","summary":"Attackers can execute arbitrary code by providing a malicious PDF that triggers unsafe pickle deserialization in pdfminer.six.","user_interaction":"required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"pdfminer.six","vendor":"pdfminer"}],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"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 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.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2025-12-11","github_poc":10,"max_poc_stars":8,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-12-11T22:21:42Z","kind":"github_poc","ref":"https://github.com/luigigubello/CVE-2025-64512-Polyglot-PoC","stars":8,"title":"A Proof-of-Concept for CVE-2025-64512 using a polyglot file."},{"date":"2026-07-19T10:49:05Z","kind":"github_poc","ref":"https://github.com/matesz44/CVE-2025-64512","stars":4,"title":"CVE-2025-64512: pdfminer.six pickle deserialization rce; .pickle.gz + pdf generator w/ custom payloads"},{"date":"2026-07-21T09:56:44Z","kind":"github_poc","ref":"https://github.com/BardLaudian/CVE-2025-64512","stars":1,"title":"CLI wrapper around the official PoC for CVE-2025-64512 — pdfminer.six insecure pickle deserialization via crafted PDF (RCE)"},{"date":"2026-07-19T16:54:00Z","kind":"github_poc","ref":"https://github.com/joeack123/PoC-for-CVE-2025-64512","stars":0,"title":"PoC script for CVE-2025-64512"},{"date":"2026-07-21T23:46:37Z","kind":"github_poc","ref":"https://github.com/MehdiChyhab/CVE-2025-64512-exploit","stars":0,"title":"CVE-2025-64512 - pdfminer.six Remote Code Execution Exploit"},{"date":"2026-07-22T18:17:24Z","kind":"github_poc","ref":"https://github.com/stoic-crawler/CVE-2025-64512","stars":0,"title":"Exploit for CVE-2025-64512 to get a reverse shell."},{"date":"2026-07-27T19:30:44Z","kind":"github_poc","ref":"https://github.com/saadhassan77/CVE-2025-64512---pdfminer.six-Remote-Code-Execution-RCE-","stars":0,"title":null},{"date":"2026-08-12T06:32:18Z","kind":"github_poc","ref":"https://github.com/DodgeNefoli/CVE-2025-64512","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"pdfminer.six vulnerable to Arbitrary Code Execution via Crafted PDF Input","id":"CVE-2025-64512","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"debian:debian_linux","products":["debian:debian_linux"],"type":"deserialization","year":"2025"},"n_packages":4,"n_references":3,"next":{"headline":"Milvus Proxy has Critical Authentication Bypass Vulnerability","id":"CVE-2025-64513"},"packages":[{"ecosystem":"PyPI","fixed":["20251107"],"introduced":["0"],"last_affected":[],"package":"pdfminer-six","purl":"pkg:pypi/pdfminer-six","source":"GHSA-wf5f-4jwr-ppcp"},{"ecosystem":"PyPI","fixed":["20251107"],"introduced":["0"],"last_affected":[],"package":"pdfminer-six","purl":"pkg:pypi/pdfminer-six","source":"PYSEC-2026-1762"},{"ecosystem":"PyPI","fixed":["20251107"],"introduced":["0"],"last_affected":[],"package":"pdfminer.six","purl":null,"source":"GHSA-wf5f-4jwr-ppcp"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["20251107-1.1"],"introduced":["0"],"last_affected":[],"package":"python-pdfminer.six","purl":"pkg:rpm/opensuse/python-pdfminer.six\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15727-1"}],"prev":{"headline":"MaxKB has SSRF in sandbox","id":"CVE-2025-64511"},"products":["pdfminer.six"],"published":"2025-11-10","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-01-08","vendors":["pdfminer"]},"summary":"Attackers can execute arbitrary code by providing a malicious PDF that triggers unsafe pickle deserialization in pdfminer.six.","url":"https://insights.sbomify.com/CVE-2025-64512/"}