
Cloud Vulnerability DB
A community-led vulnerabilities database
A remote code execution vulnerability (CVE-2025-2945) was discovered in pgAdmin 4 versions prior to 9.2, specifically affecting versions 8.10 through 9.1. The vulnerability exists in both the Query Tool and Cloud Deployment modules, where two POST endpoints (/sqleditor/query_tool/download and /cloud/deploy) unsafely pass parameters to the Python eval() function, potentially allowing arbitrary code execution (AttackerKB, NVD).
The vulnerability specifically involves two POST endpoints: the /sqleditor/query_tool/download endpoint where the query_commited parameter, and the /cloud/deploy endpoint where the high_availability parameter are unsafely passed to the Python eval() function. The vulnerability has been assigned a CVSS v3.1 base score of 9.9 (CRITICAL) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H. To exploit the vulnerability, an attacker needs both pgAdmin authentication credentials and valid database credentials to establish a query_tool session (AttackerKB, NVD).
If successfully exploited, the vulnerability allows authenticated attackers to execute arbitrary code on the system running pgAdmin with the privileges of the pgAdmin user. A Shodan query revealed approximately 5,700 potentially vulnerable internet-facing pgAdmin instances, indicating significant exposure (AttackerKB).
While the vulnerability requires authentication and specific prerequisites (including valid database credentials), it is considered highly exploitable once these conditions are met. A Metasploit module has been developed for this vulnerability, making it more accessible to attackers. The exploit is reported to be highly reliable due to the direct path from the POST parameter to the Python eval() statement (AttackerKB, Rapid7).
The vulnerability has been patched in pgAdmin 4 version 9.2. Organizations running affected versions (8.10 through 9.1) should upgrade to version 9.2 or later immediately. Versions prior to 8.10 are reportedly unaffected by this vulnerability (OSS-Security).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."