Skip to content
OpenAdvisories
Critical · 9.9 Public exploit CVE-2025-2945 EUVD-2025-9605GHSA-g73c-fw68-pwx3PYSEC-2026-451

pgAdmin 4: Remote Code Execution in Query Tool and Cloud Deployment

Published Apr 3, 2025 · Updated Feb 26, 2026 · Assigned by PostgreSQL

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.

Affected products

VendorProductAffectedFixed
pgadmin.org pgAdmin 4 < 9.2 9.2

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed pgadmin4 9.2-1.1 openSUSE-SU-2025:14983-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

GitHub 7 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pgadmin4 < 9.2 9.2 GHSA-g73c-fw68-pwx3

Advisories 2

References