ADVISORIES

PyPA Advisory Database

PYSEC-2026-1774

pgAdmin failed to properly control the server code

Details

A flaw was found in pgAdmin. This issue occurs when the pgAdmin server HTTP API validates the path a user selects to external PostgreSQL utilities such as pg_dump and pg_restore. Versions of pgAdmin prior to 7.7 failed to properly control the server code executed on this API, allowing an authenticated user to run arbitrary commands on the server.

Affected packages

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

References