CVE-2026-116252: Connection string injection in pgAdmin 4 materialized view refresh
- Vendor
- Pgadmin
pgAdmin 4 before version 9.19 passes the target database name unchanged to psql's --dbname argument during materialized view refresh. libpq interprets a value containing an equals sign or a PostgreSQL connection URI as a connection string rather than a literal database name. An attacker with CREATEDB privileges can create a specially named database whose embedded connection parameters override pgAdmin's intended host, port, and other settings. Refreshing a materialized view in that database redirects the psql connection to an attacker-selected endpoint, potentially exposing the connecting user's saved server password. This is a remaining vulnerable caller of the weakness previously addressed in other operations under CVE-2026-86862.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Exploitation can disclose the connecting user's saved PostgreSQL server password to an attacker-controlled endpoint and induce outbound connections from the pgAdmin host to arbitrary addresses. Credential disclosure can enable subsequent unauthorized database access within the compromised account's permissions, subject to network reachability and authentication controls.
Mitigation
If you can’t patch tonight, do this now.
Until upgrading, restrict CREATEDB privileges to trusted roles and avoid materialized view refreshes against databases with untrusted or suspicious names. These are temporary risk-reduction measures; no complete interim workaround is specified.
Remediation
Patch, then assume compromise.
Upgrade pgAdmin 4 to version 9.19 or a later fixed release. The fix processes the materialized view refresh database name through database_conninfo(), ensuring libpq treats it strictly as a database name rather than expanding it into connection parameters.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-116252 exploited in the wild?
- As of Nov 8, 2026, Mallory has no reports of CVE-2026-116252 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-116252?
- As of Nov 8, 2026, Mallory has found no public exploit for CVE-2026-116252.
- Is there a patch for CVE-2026-116252?
- Upgrade pgAdmin 4 to version 9.19 or a later fixed release. The fix processes the materialized view refresh database name through database_conninfo(), ensuring libpq treats it strictly as a database name rather than expanding it into connection parameters.
- What products are affected by CVE-2026-116252?
- Pgadmin 4.
- How severe is CVE-2026-116252?
- CVE-2026-116252 has a CVSS v4 score of 7.1 (High) and an EPSS score of 0.26% (18th percentile) as of Nov 8, 2026.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.