CVE-2026-116252Medium· 6.5▾ SunlitpgAdmin 4's materialized view refresh passed the target database's name to psql's --dbname argument unchanged. libpq treats a --dbname value containing "=" (or a postgresql:// URI) as a full connection string, whose keywords override the…
▾ Sunlit zone — Low / medium · no exploitation signal
impact 35.8 · likelihood 0.1 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via CVEORG
0.3%
pgAdmin 4's materialized view refresh passed the target database's name to psql's --dbname argument unchanged. libpq treats a --dbname value containing "=" (or a postgresql:// URI) as a full connection string, whose keywords override the host, port and other settings pgAdmin had supplied. A database whose name is such a string, which any role with CREATEDB can create, therefore redirected the psql process pgAdmin starts for the refresh to a host and port of the creator's choosing, and the connecting user's saved server password was presented to that endpoint. It also let the pgAdmin host be made to open connections to arbitrary addresses.
The same weakness was fixed for Backup, Restore, Maintenance and Import/Export Data in earlier releases (CVE-2026-86862); the materialized view refresh was the remaining caller. The fix routes the name through the same database_conninfo() helper, so libpq treats it strictly as a database name.
This issue affects pgAdmin 4: before 9.19.
pgadmin_4 < 9.19Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
Connected by shared product, vendor, weakness, or advisory.
CVE-2026-116247High· 8.2pgAdmin 4: libpq uses the pgAdmin service account's own password file and client certificate
CVE-2026-116244High· 8.2pgAdmin 4: libpq uses the pgAdmin service account's Kerberos credentials
CVE-2026-116245High· 8.2pgAdmin 4: Connection services are not restricted in server mode
CVE-2026-116242High· 8.2pgAdmin 4: SSH tunnels use the pgAdmin service account's own SSH identity
CVE-2026-116251Medium· 4.2pgAdmin 4: A user's other sessions survive a change of their password
CVE-2026-116249High· 8.4pgAdmin 4: Connection file paths and parameter keys escape the user's storage directory