pgAdmin 4 Fixes Critical RCE and XSS Flaws in Query Tool and Data Views
Patch & Detection Intelligence · 3 sources · Updated 4mo ago · First seen Apr 22, 2025

pgAdmin 4 developers released security updates for two critical vulnerabilities affecting versions earlier than 9.2, including CVE-2025-2945 and CVE-2025-2946. The most severe issue, CVE-2025-2945 (CVSS 9.9), is a remote code execution flaw in the Query Tool and Cloud Deployment components caused by unsafe use of Python eval() on unsanitized POST parameters, allowing an authenticated remote attacker to compromise confidentiality, integrity, and availability.
The second flaw, CVE-2025-2946 (CVSS 9.1), is a cross-site scripting vulnerability in the Query Tool and View/Edit Data components that can execute attacker-controlled HTML or JavaScript when query results are rendered in the result grid. Public proof-of-concept exploit code is available for the vulnerabilities, increasing exploitation risk, and users are being urged to upgrade pgAdmin 4 to version 9.2 or later immediately.


