patchminder
Weaponized · Metasploit CVE-2025-2945

Remote code executionin pgadmin.org pgAdmin 4.

Published 3 Apr 2025 · Updated 26 Feb 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Metasploit exploit is public.

Attack code is public
Severity
Critical 9.9
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 56.3% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 9.2 or later
In plain words

Remote Code Execution security vulnerability in pgAdmin 4 (Query Tool and Cloud Deployment modules). The vulnerability is associated with the 2 POST endpoints; /sqleditor/query_tool/download, where the query_commited parameter and /cloud/deploy endpoint, where the high_availability parameter is unsafely passed to the Python eval() function, allowing arbitrary code execution. This issue affects pgAdmin 4: before 9.2.

What to do now
  • Upgrade pgAdmin 4 to 9.2 or later.
  • Upgrade pgadmin4 (PyPI) to 9.2 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
pgAdmin 4
before 9.2
9.2
CVE record
pgadmin4 (PyPI)
before 9.2
9.2
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 29 Mar 2025
    CVE ID reserved by PostgreSQL.
  2. 3 Apr 2025
    Published in the CVE List.
  3. 3 Apr 2025
    Metasploit module: pgAdmin Query Tool authenticated RCE (CVE-2025-2945).
  4. 3 Jun 2025
    First public proof of concept on GitHub.
  5. 26 Feb 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Metasploit). CISA assessment (SSVC): exploitation none.

Metasploit module
1 module
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
7 repositories
GitHubno warning signs foundCycloctane/cve-2025-2945-poc9 stars · created 13 Sep 2025Python PoC script for pgAdmin4 Query Tool RCE (CVE-2025-2945)
GitHubno warning signs foundabrewer251/CVE-2025-2945_PgAdmin_PoC3 stars · created 3 Jun 2025pgAdmin Proof of Concept
GitHubno warning signs foundUdayveer17/CVE-2025-2945-pgAdmin4-Authenticated-RCE-PoC-2 stars · created 26 Nov 2025
GitHubno warning signs foundI3r1h0n/pgAdminOpendoor1 stars · created 10 Nov 2025Exploit and test stand for CVE-2025-2945
GitHubno warning signs foundplur1bu5/CVE-2025-2945-pgadmin-rce0 stars · created 16 Mar 2026Authenticated RCE in pgAdmin 4 (8.10 to 9.1) via eval() injection in the Query Tool. This is an updated PoC with compatibility fixes for pgAdmin 9.x auth changes
GitHubno warning signs foundg0d150ne/CVE-2025-29450 stars · created 10 Aug 2026Exploit for pgAdmin4 Remote Code Execution (RCE) vulnerability affecting versions 8.10 to 9.1.
GitHubno warning signs foundKhashayarnzk/CVE-2025-2945-pgAdmin-RCE0 stars · created 26 Aug 2026PoC for CVE-2025-2945 · pgAdmin 4 authenticated eval() injection RCE, CVSS 9.9

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other pgAdmin 4 vulnerabilities

Same weakness: Code injection

All CWE-94 vulnerabilities

References
Cite this page

Patchminder. CVE-2025-2945: Remote code execution in pgadmin.org pgAdmin 4. https://patchminder.com/cve/cve-2025-2945/ (accessed 5 December 2026).