CVE-2025-2945
Python vulnerability analysis and mitigation

Overview

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).

Technical details

The vulnerability specifically involves two POST endpoints: the /sqleditor/querytool/download endpoint where the querycommited parameter, and the /cloud/deploy endpoint where the highavailability 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 querytool session (AttackerKB, NVD).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management