{
  "id": "CVE-2025-64512",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-64512",
  "published_at": "2025-11-10T21:58:37.95Z",
  "title": "pdfminer.six vulnerable to Arbitrary Code Execution via Crafted PDF Input",
  "vendor": "pdfminer",
  "product": "pdfminer.six",
  "cvss": {
    "score": 8.6,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2025-12-11T22:21:42Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 31,
    "repo": "luigigubello/CVE-2025-64512-Polyglot-PoC",
    "source": "github"
  },
  "poc_repo_count": 10,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-502",
  "cpes": [
    "cpe:2.3:a:pdfminer:pdfminer.six:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.6,
    "nvd": 7.8
  },
  "repos": [
    {
      "repo": "luigigubello/CVE-2025-64512-Polyglot-PoC",
      "url": "https://github.com/luigigubello/CVE-2025-64512-Polyglot-PoC",
      "created_at": "2025-12-11T22:21:42Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 8,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-04-07T23:27:32Z"
    },
    {
      "repo": "matesz44/CVE-2025-64512",
      "url": "https://github.com/matesz44/CVE-2025-64512",
      "created_at": "2026-07-19T10:49:05Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 4,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-06-07T08:04:19Z"
    },
    {
      "repo": "joeack123/PoC-for-CVE-2025-64512",
      "url": "https://github.com/joeack123/PoC-for-CVE-2025-64512",
      "created_at": "2026-07-19T16:54:00Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-09-08T23:31:31Z"
    },
    {
      "repo": "BardLaudian/CVE-2025-64512",
      "url": "https://github.com/BardLaudian/CVE-2025-64512",
      "created_at": "2026-07-21T09:56:44Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-11-21T14:38:59Z"
    },
    {
      "repo": "MehdiChyhab/CVE-2025-64512-exploit",
      "url": "https://github.com/MehdiChyhab/CVE-2025-64512-exploit",
      "created_at": "2026-07-21T23:46:37Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2025-03-26T14:01:23Z"
    },
    {
      "repo": "stoic-crawler/CVE-2025-64512",
      "url": "https://github.com/stoic-crawler/CVE-2025-64512",
      "created_at": "2026-07-22T18:17:24Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-05-21T20:03:19Z"
    },
    {
      "repo": "saadhassan77/CVE-2025-64512---pdfminer.six-Remote-Code-Execution-RCE-",
      "url": "https://github.com/saadhassan77/CVE-2025-64512---pdfminer.six-Remote-Code-Execution-RCE-",
      "created_at": "2026-07-27T19:30:44Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-05-02T08:31:15Z"
    },
    {
      "repo": "DodgeNefoli/CVE-2025-64512",
      "url": "https://github.com/DodgeNefoli/CVE-2025-64512",
      "created_at": "2026-08-12T06:32:18Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2022-07-21T14:23:14Z"
    },
    {
      "repo": "oguzylmzx/CVE-2025-64512-pdfminer-PoC",
      "url": "https://github.com/oguzylmzx/CVE-2025-64512-pdfminer-PoC",
      "created_at": "2026-08-15T16:57:44Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2023-10-13T07:51:35Z"
    },
    {
      "repo": "Jinook-Kim/CVE-2025-64512_PoC",
      "url": "https://github.com/Jinook-Kim/CVE-2025-64512_PoC",
      "created_at": "2026-09-15T05:39:37Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-12-19T10:33:51Z"
    },
    {
      "repo": "SASbot01/HTB-Bedside",
      "url": "https://github.com/SASbot01/HTB-Bedside",
      "created_at": "2026-10-01T22:24:08Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-11-27T00:57:38Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "pdfminer",
        "product": "pdfminer.six",
        "ranges": [
          "\u003c 20251107"
        ],
        "fixed_in": [
          "20251107"
        ]
      }
    ],
    "upgrade": [
      "Upgrade pdfminer.six to 20251107 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/pdfminer/pdfminer.six/security/advisories/GHSA-wf5f-4jwr-ppcp"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/pdfminer/pdfminer.six/commit/b808ee05dd7f0c8ea8ec34bdf394d40e63501086"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/pdfminer/pdfminer.six/releases/tag/20251107"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/",
      "body_markers": [
        "uploadFile=@",
        "name=\"uploadFile\"",
        "uploadFile=@/tmp/test.pdf",
        "uploadFile=@test_archive.zip;filename=collection.zip;type=application/zip",
        "uploadFile=@/tmp/payload.php;filename=$f;type=$ct"
      ],
      "content_type": "multipart/form-data",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "DodgeNefoli/CVE-2025-64512",
        "SASbot01/HTB-Bedside"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "DodgeNefoli/CVE-2025-64512/cve_2025_64512.py:154",
        "SASbot01/HTB-Bedside/exploit/poc/exploit.py:95",
        "SASbot01/HTB-Bedside/exploit/poc/exploit_bedside.py:46",
        "SASbot01/HTB-Bedside/exploit/poc/exploit_bedside.py:60",
        "SASbot01/HTB-Bedside/exploit/poc/exploit_fixed.py:25",
        "SASbot01/HTB-Bedside/exploit/poc/exploit_fixed.py:37",
        "SASbot01/HTB-Bedside/exploit/poc/exploit_root_setup.py:93",
        "SASbot01/HTB-Bedside/exploit/poc/exploit_stdlib.py:68",
        "SASbot01/HTB-Bedside/exploit/poc/oracle_test.py:12",
        "SASbot01/HTB-Bedside/exploit/poc/oracle_test.py:18",
        "SASbot01/HTB-Bedside/phases/phase-04-upload-analysis.md:18",
        "SASbot01/HTB-Bedside/phases/phase-04-upload-analysis.md:79",
        "SASbot01/HTB-Bedside/scripts/03_research_enum.sh:11"
      ]
    },
    {
      "method": "GET",
      "path_template": "/$p)",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "SASbot01/HTB-Bedside"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "SASbot01/HTB-Bedside/phases/phase-03-vhost-research.md:52"
      ]
    },
    {
      "method": "GET",
      "path_template": "/../../../../../../..{var}",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "SASbot01/HTB-Bedside"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "SASbot01/HTB-Bedside/scripts/read-host-file.sh:23"
      ]
    },
    {
      "method": "GET",
      "path_template": "/../../../../etc/passwd",
      "ports": [
        3000
      ],
      "protocol": "http",
      "repos": [
        "SASbot01/HTB-Bedside"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "SASbot01/HTB-Bedside/phases/phase-07-host-file-read.md:23"
      ]
    },
    {
      "method": "GET",
      "path_template": "/../../../../home/developer/.ssh/authorized_keys",
      "ports": [
        3000
      ],
      "protocol": "http",
      "repos": [
        "SASbot01/HTB-Bedside"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "SASbot01/HTB-Bedside/phases/phase-07-host-file-read.md:68"
      ]
    },
    {
      "method": "GET",
      "path_template": "/../../../../home/developer/.ssh/id_ed25519",
      "ports": [
        3000
      ],
      "protocol": "http",
      "repos": [
        "SASbot01/HTB-Bedside"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "SASbot01/HTB-Bedside/phases/phase-07-host-file-read.md:66"
      ]
    },
    {
      "method": "GET",
      "path_template": "/../../../../home/developer/.ssh/id_rsa",
      "ports": [
        3000
      ],
      "protocol": "http",
      "repos": [
        "SASbot01/HTB-Bedside"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "SASbot01/HTB-Bedside/phases/phase-07-host-file-read.md:65"
      ]
    },
    {
      "method": "GET",
      "path_template": "/api/slice",
      "query_markers": [
        "file=../../../../etc/passwd"
      ],
      "ports": [
        3000
      ],
      "protocol": "http",
      "repos": [
        "SASbot01/HTB-Bedside"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "SASbot01/HTB-Bedside/phases/phase-07-host-file-read.md:12"
      ]
    },
    {
      "method": "GET",
      "path_template": "/uploads/test.pdf",
      "ports": [
        8000
      ],
      "protocol": "http",
      "repos": [
        "SASbot01/HTB-Bedside"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "SASbot01/HTB-Bedside/phases/phase-04-upload-analysis.md:22"
      ]
    },
    {
      "method": "GET",
      "path_template": "/uploads/{var}",
      "protocol": "http",
      "repos": [
        "DodgeNefoli/CVE-2025-64512"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "DodgeNefoli/CVE-2025-64512/cve_2025_64512.py:79"
      ]
    },
    {
      "method": "POST",
      "path_template": "/uploads/{var}",
      "body_markers": [
        "name=\"field\""
      ],
      "content_type": "multipart/form-data",
      "protocol": "http",
      "repos": [
        "DodgeNefoli/CVE-2025-64512"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "DodgeNefoli/CVE-2025-64512/cve_2025_64512.py:69"
      ]
    }
  ],
  "rules": []
}
