CVE-2025-2945: pgAdmin 4: Remote Code Execution in Query Tool and Cloud Deployment
Vulnerability summary
CVE-2025-2945 is a critical (CVSS 9.9) Improper Control of Generation of Code vulnerability in pgadmin pgadmin_4. EPSS estimates a 56.30% chance of exploitation in the next 30 days, higher than 99% of scored vulnerabilities. 2 public exploits are recorded.
Weaponized exploit (Metasploit, 03-04-2025)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 03-04-2025PublishedVulnerability first disclosed.
- 26-02-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · PypiEcosystem advisory · calculated9.9CriticalCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
56.30%
Chance of exploitation in the next 30 days
Percentile
99%
Versus all other CVEs
30-day change
No change 0.00 pp
From 56.30% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
2 foundPgadmin4
Maturity: poc
pgAdmin Query Tool authenticated RCE (CVE-2025-2945)
exploit/multi/http/pgadmin_query_tool_authenticated
Maturity: weaponized
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Pgadmin1 product
- pgadmin_4< 9.2
Pgadmin.org1 product
- pgadmin 4< 9.2
PyPI1 product
- pgadmin4< 9.2
3 vendors · 3 products
References
6 links- pypi.org/project/pgadmin4PACKAGE