CVE-2025-2945

Critical

Description

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 Python eval() function, allowing arbitrary code execution. This issue affects pgAdmin 4: before 9.2.

SeverityCritical
CVSS9.9
Exploit probability—
ProductPgadmin 4
PublishedApr 3, 2025
First seenApr 3, 2025

How to fix

Update
  • pgadmin pgadmin_49.2 or later
  • pgadmin49.2 or later

Affected products

ProductAffected versionsFixed in
pgadmin pgadmin_4v < 9.29.2
pgadmin4PyPIv < 9.29.2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.