CVE-2026-116252
published high CVSS 4.0 · 7.1pgAdmin 4: Materialized view refresh redirects its connection through a crafted database name
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| pgadmin.org | — | pgAdmin 40 to < 9.19 · Other versions: unaffected | Affected | Not stated | PostgreSQL |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- PostgreSQL · cna
- Vector string
- 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
- Scenarios
- en: Same reasoning as the CVSS 3.1 entry. AT:N because no condition outside the attacker's control is needed beyond the victim using the feature. VC:H for the captured password; no subsequent-system impact is claimed from the flaw itself.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.5 | medium | PostgreSQL · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N | en: Same threat model and vector as CVE-2026-86862, of which this is the remaining caller. The attacker needs a database role with CREATEDB on a server another pgAdmin user connects to, and that user must refresh a materialized view in that database; no other precondition applies, so Attack Complexity is Low. Confidentiality is High because the victim's saved server password is sent to the attacker's endpoint. Integrity and Availability are None. Scope is Unchanged, as for CVE-2026-86862: the credential is captured from the user's own connection rather than a different authority being exercised. |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| pgadmin.org | pgAdmin 4 | 0 to < 9.19 (affected · custom)Default: unaffected | PostgreSQL · cna |
Weaknesses
3- CWE-88 CWE-88 Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
- CWE-522 CWE-522 Insufficiently Protected Credentials
- CWE-918 CWE-918 Server-Side Request Forgery (SSRF)
References
2Provider assertions
2PostgreSQL · cna
pgAdmin 4: Materialized view refresh redirects its connection through a crafted database name
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 08af9889847d059bf710601cb866b1160852e7ec045d3f5f0cf6b5edad51188c
- Ingested
- 07 Nov 2026, 23:38:29 UTC
- Source record
- Official CVE record