CVE-2025-2945
Published: 03 April 2025
Summary
CVE-2025-2945 is a critical-severity Code Injection (CWE-94) vulnerability in Pgadmin Pgadmin 4. Its CVSS base score is 9.9 (Critical).
Operationally, ranked in the top 0.7% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
Deeper analysis
CVE-2025-2945 is a remote code execution vulnerability in pgAdmin 4 versions prior to 9.2, specifically in the Query Tool and Cloud Deployment modules. The flaw arises from two POST endpoints where unsanitized parameters are passed directly to Python's eval() function: the query_commited parameter at /sqleditor/query_tool/download and the high_availability parameter at /cloud/deploy. This corresponds to CWE-94 and carries a CVSS 3.1 score of 9.9.
An authenticated attacker with network access and low privileges can supply crafted input to these endpoints, resulting in arbitrary code execution on the server with impacts to confidentiality, integrity, and availability. The attack requires no user interaction and can cross security boundaries due to the affected component's privileges.
The referenced GitHub issue at https://github.com/pgadmin-org/pgadmin4/issues/8603 provides further technical discussion of the endpoints involved. The EPSS score stands at 0.8249 with no indicated rise from a lower baseline.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2025-9605
Vulnerability details
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…
more
Python eval() function, allowing arbitrary code execution. This issue affects pgAdmin 4: before 9.2.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Makes persistent code injection into loaded programs impossible when the executable image itself resides on hardware-protected read-only media.
Dynamically generated code can be produced and executed inside the isolated chamber, preventing host compromise from code-injection payloads.
Validates inputs used in dynamic code generation to block injected directives.
Directly prevents execution of attacker-supplied code written into data memory regions.