CVE-2025-2945: Remote Code Execution in pgAdmin 4 Query Tool and Cloud Deployment
- Vendor
- Pgadmin
pgAdmin 4 versions before 9.2 contain a remote code execution vulnerability in the Query Tool and Cloud Deployment modules. User-controlled values in the query_commited and high_availability POST parameters are passed unsafely to Python's eval() function without adequate validation. A remote authenticated attacker can submit specially crafted requests to execute arbitrary Python code on the system running pgAdmin.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary server-side code execution and can fully compromise confidentiality, integrity, and availability within the privileges and resources accessible to the pgAdmin process.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, reduce exposure by restricting access to pgAdmin to trusted administrators only, limiting network reachability to the application, and disabling or tightly controlling access to the affected Query Tool and Cloud Deployment functionality where operationally feasible. Because the vulnerability is triggered through authenticated POST requests, enforcing strong access controls and minimizing the number of accounts with access to these features can reduce risk until the upgrade is completed.
Remediation
Patch, then assume compromise.
Upgrade pgAdmin 4 to version 9.2 or later.
Exploits
9 exploits validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2025-2945 exploited in the wild?
- As of Nov 17, 2026, Mallory has no reports of CVE-2025-2945 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-2945?
- Yes. Mallory tracks 9 public exploits or proofs of concept for CVE-2025-2945, the earliest disclosed Apr 3, 2025.
- Is there a patch for CVE-2025-2945?
- Upgrade pgAdmin 4 to version 9.2 or later.
- What products are affected by CVE-2025-2945?
- Pgadmin 4.
- How severe is CVE-2025-2945?
- CVE-2025-2945 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 56.3% (99th percentile) as of Nov 17, 2026.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.