CVE-2025-2945 Details
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.
A remote code execution vulnerability exists in pgAdmin 4 versions prior to 9.2, specifically within the Query Tool and Cloud Deployment modules. This vulnerability arises from two POST endpoints: '/sqleditor/query_tool/download' and '/cloud/deploy'. In the first endpoint, the 'query_commited' parameter, and in the second, the 'high_availability' parameter, are improperly handled and passed to the Python eval() function. This flaw allows for arbitrary code execution on the server.
Users can upgrade to pgAdmin 4 version 9.2 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 4, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/pgadmin-org/pgadmin4/issues/8603 | PostgreSQL | ExploitIssue Tracking |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| pgadmin pgadmin 4 | < 9.2 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | PostgreSQL |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 17, 2025 | Initial Analysis | [email protected] |
| Apr 3, 2025 | CVE Modified | CISA-ADP |
| Apr 3, 2025 | New CVE Received | PostgreSQL |