Remote code executionin pgadmin.org pgAdmin 4.
Weaponized: a Metasploit exploit is public.
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.
- Upgrade pgAdmin 4 to 9.2 or later.
- Upgrade pgadmin4 (PyPI) to 9.2 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 29 Mar 2025CVE ID reserved by PostgreSQL.
- 3 Apr 2025Published in the CVE List.
- 3 Apr 2025Metasploit module: pgAdmin Query Tool authenticated RCE (CVE-2025-2945).
- 3 Jun 2025First public proof of concept on GitHub.
- 26 Feb 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: Weaponized (Metasploit). CISA assessment (SSVC): exploitation none.
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.
Report a link
Other pgAdmin 4 vulnerabilities
Same weakness: Code injection
- github.com issue-tracking
Patchminder. CVE-2025-2945: Remote code execution in pgadmin.org pgAdmin 4. https://patchminder.com/cve/cve-2025-2945/ (accessed 5 December 2026).