ADVISORIES

PyPA Advisory Database

PYSEC-2026-451

pgAdmin 4 Vulnerable to Remote Code Execution

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 Python eval() function, allowing arbitrary code execution.

This issue affects pgAdmin 4: before 9.2.

Affected packages

EcosystemPackageAffected versions
PyPIpgadmin4
All versions before 9.2 (fixed in 9.2)

References