GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Materialized view refresh could be redirected to another server via a crafted database name (CVE-2026-116252) · Issue #10645 · pgadmin-org/pgadmin4

Materialized view refresh could be redirected to another server via a crafted database name (CVE-2026-116252) #10645

New issue
Copy link
New issue
Copy link
Closed
Closed
Materialized view refresh could be redirected to another server via a crafted database name (CVE-2026-116252)#10645
Copy link

Description

@asheshv
asheshv
opened on Oct 22, 2026
Issue body actions

Summary

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.

Affected versions

pgAdmin 4 >= 4.21, < 9.19.

Fix

Fixed in pgAdmin 4 9.19 by a1a43e8c28cf10cec73df0c476905562d19af483.

Severity

  • CVSS 3.1: 6.5 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • CVSS 4.0: 7.1 HIGH — CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Weaknesses

  • CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
  • CWE-522 Insufficiently Protected Credentials
  • CWE-918 Server-Side Request Forgery (SSRF)

Credit

Reported by 배승원 (Bae Seung-won), Ajou University (@baeseungwon1010).

References

  • CVE: CVE-2026-116252
  • Release notes: pgAdmin 4 9.19

Activity

  1. asheshv
    added 2 commits that reference this issue on Oct 26, 2026

    Stop the materialized view refresh redirecting its connection via a c…

    a1a43e8

    chore: Add the 9.19 security release notes and the release date.

    4581fdd
  2. dpage
    changed the title [-]Internal tracking: pending fix for 9.19[/-] [+]Materialized view refresh could be redirected to another server via a crafted database name (CVE-2026-116252)[/+] on Nov 5, 2026
  3. dpage commented on Nov 5, 2026

    @dpage
    dpage
    on Nov 5, 2026
    Contributor
    More actions

    Fixed in pgAdmin 4 9.19, released on 29-10-2026.

    CVE: CVE-2026-116252

    Details (from the 9.19 release notes):

    Fix connection redirection in the materialized view refresh, where the target database's name was passed straight to psql's --dbname: because libpq expands a value containing an equals sign into a full connection string, a database named like host=... port=..., which any role with only CREATEDB can create, redirected psql to a server of the creator's choosing and leaked the connecting user's saved password (CVE-2026-116252). The name is now passed through the same connection-information helper as the Backup, Restore, Maintenance and Import/Export tools, so libpq treats it strictly as a database name. Reported by Bae Seung-won (@baeseungwon1010).

    Commits:

    • a1a43e8 Stop the materialized view refresh redirecting its connection via a crafted database name. Materialized view refresh could be redirected to another server via a crafted database name (CVE-2026-116252) #10645
  4. dpage
    closed this as completedon Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.