Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-2945_PgAdmin_PoC — pgAdmin Proof of Concept | Kitploit
Tools/GitHubGitHub/abrewer251/cve-2025-2945_pgadmin_poc
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingRed Teaming
GitHubabrewer251/cve-2025-2945_pgadmin_poc

CVE-2025-2945_PgAdmin_PoC

pgAdmin Proof of Concept

View Repository
31411 year agoNot yet reviewed
Share

CVE-2025-2945_PoC

pgAdmin Proof of Concept

pgAdmin Query Tool RCE (CVE-2025-2945) – Python Proof of Concept

⚠️ Disclaimer
This repository contains a proof-of-concept exploit for CVE-2025-2945, a critical remote code execution vulnerability in pgAdmin 4 versions prior to 9.2. Use this code only in environments you own or have explicit permission to test. The author is not responsible for any misuse or damage caused by this software.


Table of Contents

  1. Overview
  2. Vulnerability Details (CVE-2025-2945)
  3. Prerequisites
  4. Setup & Installation
  5. Usage
  6. Exploit Workflow
  7. Detection & Mitigation
  8. License

Overview

This repository provides a standalone Python script—pgadmin_rce.py—that replicates the functionality of the Metasploit module for CVE-2025-2945. When run against a vulnerable pgAdmin 4 instance (versions 8.10–9.1), it will:

  1. Authenticate to pgAdmin 4 using valid credentials.
  2. Initialize the Query Tool (SQL editor) session.
  3. Discover a valid server‐connection ID (server group & server ID).
  4. Submit a malicious payload via the query_commited parameter to trigger an eval() on the server.
  5. Observe an HTTP 500 response (indicating the payload executed on the backend).

Because the vulnerable endpoints rely on Python’s built-in eval() without sanitizing user input, an authenticated user can force pgAdmin to run arbitrary Python code on the host machine, resulting in full RCE.


Vulnerability Details (CVE-2025-2945)

  • Affected Software:
    • pgAdmin 4 versions 8.10 through 9.1 (inclusive)
  • Fixed In:
    • pgAdmin 4 version 9.2 (released April 4, 2025)
  • CVSS v3.1 Score: 9.9 (Critical)
  • Impact:
    • An authenticated attacker can send a specially crafted query_commited (or high_availability in the Cloud Deployment module) parameter to an eval() call on the server, resulting in arbitrary code execution under the pgAdmin service account.
  • References:
    • Mitre CVE-2025-2945
    • NVD Entry (CVSS 9.9)
    • Tenable Analysis
    • Rapid7 Metasploit Module

Prerequisites

  1. Python 3.7+

  2. Python packages (install via pip):

    • requests
    • faker
    pip install requests faker
    
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    891
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    547
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    369
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    366
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    309
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    282

Explore all tools

Browse our collection of tools

View all tools →