Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| pgadmin.org | pgAdmin 4 | < 9.2 | 9.2 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | pgadmin4 | 9.2-1.1 | openSUSE-SU-2025:14983-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
pgAdmin Query Tool authenticated RCE (CVE-2025-2945)
exploit/multi/http/pgadmin_query_tool_authenticated
GitHub 7 repositories
-
Cycloctane/cve-2025-2945-poc ★ 8 · Sep 13, 2025
Python PoC script for pgAdmin4 Query Tool RCE (CVE-2025-2945)
-
abrewer251/CVE-2025-2945_PgAdmin_PoC ★ 3 · Jun 3, 2025
pgAdmin Proof of Concept
-
Udayveer17/CVE-2025-2945-pgAdmin4-Authenticated-RCE-PoC- ★ 2 · Nov 26, 2025
-
I3r1h0n/pgAdminOpendoor ★ 1 · Nov 10, 2025
Exploit and test stand for CVE-2025-2945
-
Khashayarnzk/CVE-2025-2945-pgAdmin-RCE ★ 0 · Aug 26, 2026
PoC for CVE-2025-2945 — pgAdmin 4 authenticated eval() injection RCE, CVSS 9.9
-
g0d150ne/CVE-2025-2945 ★ 0 · Aug 10, 2026
Exploit for pgAdmin4 Remote Code Execution (RCE) vulnerability affecting versions 8.10 to 9.1.
-
plur1bu5/CVE-2025-2945-pgadmin-rce ★ 0 · Mar 16, 2026
Authenticated RCE in pgAdmin 4 (8.10–9.1) via eval() injection in the Query Tool. This is an updated PoC with compatibility fixes for pgAdmin 9.x auth changes
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pgadmin4 | < 9.2 | 9.2 | GHSA-g73c-fw68-pwx3 |
Advisories 2
- openSUSE-SU-2025:14983-1 pgadmin4-9.2-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2025-0708 pgAdmin: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 11, 2025
References
- https://github.com/pgadmin-org/pgadmin4/issues/8603 issue-tracking