CVE-2025-2945 in Pgadmin 4
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 ...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Pgadmin | Pgadmin 4 | < 9.2 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2025-2945 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-041155-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2025-04-03 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-94: Code Injection
Attacker injects arbitrary code that is executed by the application process.
Related attack patterns (CAPEC)
CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-94
CAPEC-77 Manipulating User-Controlled Variables via CWE-94
CAPEC-242 Code Injection via CWE-94
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2025-2945 is a Remote Code Execution (RCE) vulnerability in pgAdmin 4, affecting the Query Tool and Cloud Deployment modules. The vulnerability arises from unsafe use of the Python eval() function, which can lead to arbitrary code execution. This issue affects versions of pgAdmin 4 before 9.2 and has a CVSS score of 8.8, indicating a high severity. The vulnerability has a public proof of concept (PoC) and an EPSS score of 0.82490, placing it in the 1.0 percentile for exploitation likelihood. Immediate action is recommended to mitigate the risk of exploitation, especially in environments where pgAdmin is exposed to untrusted networks.
The vulnerability is triggered by sending a malicious POST request to the /sqleditor/query_tool/download endpoint with a crafted query_commited parameter or to the /cloud/deploy endpoint with a crafted high_availability parameter. The parameters are unsafely passed to the Python eval() function, allowing an attacker to execute arbitrary code on the server. This can lead to full control of the server, data exfiltration, or further attacks on the network.
Compensating controls AI-drafted, review before use
Implement strict input validation and sanitization for the query_commited and high_availability parameters. Consider using a Web Application Firewall (WAF) to monitor and block suspicious requests to the affected endpoints.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2025-2945?
CVE-2025-2945 is a Remote Code Execution (RCE) vulnerability in pgAdmin 4, affecting the Query Tool and Cloud Deployment modules. The vulnerability arises from unsafe use of the Python eval() function, which can lead to arbitrary code execution. This issue affects versions of pgAdmin 4 before 9.2 and has a CVSS score of 8.8, indicating a high severity. The vulnerability has a public proof of concept (PoC) and an EPSS score of 0.82490, placing it in the 1.0 percentile for exploitation likelihood.
What is the CVSS score for CVE-2025-2945?
CVE-2025-2945 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 3.9%.
Is CVE-2025-2945 actively exploited?
No confirmed active exploitation of CVE-2025-2945 as of 2026-09-25.
How do I remediate CVE-2025-2945?
Priority: IMMEDIATE.
What systems are affected by CVE-2025-2945?
CVE-2025-2945 affects Pgadmin Pgadmin 4.
What NERC-CIP standard applies to CVE-2025-2945?
NERC CIP CIP-007 CIP-007-R2: This vulnerability violates CIP-007-R2, which requires the implementation of security controls to protect against unauthorized access to critical cyber assets. The RCE vulnerability in pgAdmin 4 could allow an attacker to gain unauthorized access and control over the system, compromising the integrity and availability of the critical cyber assets.
What IEC 62443 requirement maps to CVE-2025-2945?
IEC 62443 SR 7.6: This vulnerability maps to SR 7.6, which requires the implementation of secure coding practices to prevent the execution of unauthorized code. The unsafe use of the Python eval() function in pgAdmin 4 violates this requirement, as it allows an attacker to execute arbitrary code, leading to potential system compromise.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Pgadmin","product":"Pgadmin 4","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.