PYSEC-2026-2864
pgadmin4 affected by a Restore restriction bypass via key disclosure vulnerability
Quick fix
PYSEC-2026-2864 — pgadmin4: upgrade to the fixed version with the command below.
pip install --upgrade 'pgadmin4>=9.12'Details
pgAdmin versions 9.11 are affected by a Restore restriction bypass via key disclosure vulnerability that occurs when running in server mode and performing restores from PLAIN-format dump files. An attacker with access to the pgAdmin web interface can observe an active restore operation, extract the `\restrict` key in real time, and race the restore process by overwriting the restore script with a payload that re-enables meta-commands using `\unrestrict <key>`. This results in reliable command execution on the pgAdmin host during the restore operation.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-1707[ADVISORY]
- https://github.com/pgadmin-org/pgadmin4/issues/9518[WEB]
- https://github.com/pgadmin-org/pgadmin4/commit/62e2d18b0261f88086db65059a6078db07169f18[WEB]
- https://github.com/pgadmin-org/pgadmin4[PACKAGE]
- https://pypi.org/project/pgadmin4[PACKAGE]
- https://github.com/advisories/GHSA-3p7x-94q9-jq9x[ADVISORY]