GeezerVison is showing github.com — SQL injection via unescaped object names in index Statistics and publication/subscription dependency views (CVE-2026-17346) · Issue #10193 · pgadmin-org/pgadmin4
SQL injection via unescaped object names in index Statistics and publication/subscription dependency views (CVE-2026-17346) #10193
Description
Summary
The fix for CVE-2026-12044 in pgAdmin 4 9.16 switched sixteen COMMENT ON / pgstattuple / pgstatindex templates to qtLiteral, but missed several sinks: the index Statistics all-indexes listing (coll_stats.sql) and the Publications/Subscriptions Dependencies views still interpolated object names as bare '{{ name }}' without escaping. A low-privileged user who can create a table, index, publication, or subscription containing an apostrophe in its name could inject SQL that executes when another user views the corresponding Statistics or Dependencies panel. This is an incomplete fix for CVE-2026-12044.
The fix escapes the remaining name sinks with qtLiteral and adds a behavioral regression test for name-literal SQL escaping.
Affected versions
- Index Statistics: pgAdmin 4 >= 1.0, < 9.17
- Publications/Subscriptions Dependencies: pgAdmin 4 >= 5.0, < 9.17
Fix
Fixed in pgAdmin 4 9.17 by commits 73b321899 and f75452bfd.
Severity
- CVSS 3.1: 8.8 HIGH —
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS 4.0: 8.7 HIGH —
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Credit
Reported by Hung Tran Quoc (@rampage0010).
References
Activity
changed the title
[-]Internal tracking: pending fix for 9.17[/-] [+]SQL injection via unescaped object names in index Statistics and publication/subscription dependency views (CVE-2026-17346)[/+] on Jul 31, 2026asheshv commented on Jul 31, 2026
ContributorAuthor
More actions
Fixed in pgAdmin 4 9.17, released 2026-07-30.
Metadata
Metadata
Development
No branches or pull requestsIssue actions