Code Injection in pgAdmin - CVE-2025-2945

 

Code Injection in pgAdmin - CVE-2025-2945

Published: April 5, 2025 / Updated: February 6, 2026


Vulnerability identifier: #VU107018
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:A/U:Green
CVE-ID: CVE-2025-2945
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild
Vendor: PlanGenius Admin
Affected software:
pgAdmin

Detailed vulnerability description

The vulnerability allows a remote user to execute arbitrary Python code on the system.

The vulnerability exists due to usage of en insecure eval() expression within the in the Query Tool and Cloud Deployment features in web/pgadmin/tools/sqleditor/__init__.py and web/pgacloud/providers/google.py file. A remote user can send a specially crafted HTTP POST request and execute arbitrary Python code on the server.


How to mitigate CVE-2025-2945

Install updates from vendor's website.

Sources